syslinux: add nvme support

This commit is contained in:
MatMoul 2019-01-10 22:47:29 +01:00
parent 8f6c28fe3b
commit 4b1bab46e5

22
archfi
View file

@ -1381,9 +1381,16 @@ archsyslinuxinstall(){
additionalpkg=$additionalpkg"efibootmgr " additionalpkg=$additionalpkg"efibootmgr "
fi fi
if [ "$(parted ${realrootdev::8} print|grep gpt)" != "" ]; then if [ "$isnvme" = "1" ]; then
echo "$txtsyslinuxaddgptfdisk" if [ "$(parted ${realrootdev::(-2)} print|grep gpt)" != "" ]; then
additionalpkg=$additionalpkg"gptfdisk " echo "$txtsyslinuxaddgptfdisk"
additionalpkg=$additionalpkg"gptfdisk "
fi
else
if [ "$(parted ${realrootdev::8} print|grep gpt)" != "" ]; then
echo "$txtsyslinuxaddgptfdisk"
additionalpkg=$additionalpkg"gptfdisk "
fi
fi fi
if [ "$bootdev" != "" ]; then if [ "$bootdev" != "" ]; then
@ -1428,9 +1435,14 @@ archsyslinuxinstallbootloaderchroot(){
archsyslinuxinstallbootloaderefichroot(){ archsyslinuxinstallbootloaderefichroot(){
if [ ! "$1" = "none" ]; then if [ ! "$1" = "none" ]; then
echo "cp -r /usr/lib/syslinux/efi64/* /boot/syslinux" 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 cp -r /usr/lib/syslinux/efi64/* /boot/syslinux
efibootmgr --create --disk ${1::8} --part ${1:(-1)} --loader /syslinux/syslinux.efi --label "Syslinux" --verbose 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") isvbox=$(lspci | grep "VirtualBox G")
if [ "$isvbox" ]; then if [ "$isvbox" ]; then
echo "VirtualBox detected, creating startup.nsh..." echo "VirtualBox detected, creating startup.nsh..."