syslinux: add nvme support
This commit is contained in:
parent
8f6c28fe3b
commit
4b1bab46e5
1 changed files with 17 additions and 5 deletions
14
archfi
14
archfi
|
@ -1381,10 +1381,17 @@ archsyslinuxinstall(){
|
|||
additionalpkg=$additionalpkg"efibootmgr "
|
||||
fi
|
||||
|
||||
if [ "$isnvme" = "1" ]; then
|
||||
if [ "$(parted ${realrootdev::(-2)} print|grep gpt)" != "" ]; then
|
||||
echo "$txtsyslinuxaddgptfdisk"
|
||||
additionalpkg=$additionalpkg"gptfdisk "
|
||||
fi
|
||||
else
|
||||
if [ "$(parted ${realrootdev::8} print|grep gpt)" != "" ]; then
|
||||
echo "$txtsyslinuxaddgptfdisk"
|
||||
additionalpkg=$additionalpkg"gptfdisk "
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$bootdev" != "" ]; then
|
||||
if [ "$(parted $bootdev print|grep fat)" != "" ]; then
|
||||
|
@ -1428,9 +1435,14 @@ archsyslinuxinstallbootloaderchroot(){
|
|||
archsyslinuxinstallbootloaderefichroot(){
|
||||
if [ ! "$1" = "none" ]; then
|
||||
echo "cp -r /usr/lib/syslinux/efi64/* /boot/syslinux"
|
||||
echo "efibootmgr --create --disk ${1::8} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose"
|
||||
cp -r /usr/lib/syslinux/efi64/* /boot/syslinux
|
||||
if [ "${1::8}" == "/dev/nvm" ]; then
|
||||
echo "efibootmgr --create --disk ${1::(-2)} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose"
|
||||
efibootmgr --create --disk ${1::(-2)} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose
|
||||
else
|
||||
echo "efibootmgr --create --disk ${1::8} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose"
|
||||
efibootmgr --create --disk ${1::8} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose
|
||||
fi
|
||||
isvbox=$(lspci | grep "VirtualBox G")
|
||||
if [ "$isvbox" ]; then
|
||||
echo "VirtualBox detected, creating startup.nsh..."
|
||||
|
|
Loading…
Reference in a new issue