[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo [2021/01/11 06:41 (UTC)] – fix to correctly set partition and device even on mmcblk louigi600howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo [2021/01/11 07:07 (UTC)] (current) – fix for mmcblk louigi600
Line 54: Line 54:
   - A boot entry variable is registered in the UEFI firmware using ''efibootmgr''. The exact command that is run is <code bash>   - A boot entry variable is registered in the UEFI firmware using ''efibootmgr''. The exact command that is run is <code bash>
 EFIDISK=$(df  /boot/efi/ |awk 'END{printf("%s\n",$1)}') EFIDISK=$(df  /boot/efi/ |awk 'END{printf("%s\n",$1)}')
-EFI_DEVICE=$(sed 's%[0-9]$%%;s%\([0-9]\)p%\1%' <<< $EFIDISK) +EFI_DEVICE=$(sed 's%[0-9]\+$%%;s%\([0-9]\)p%\1%' <<< $EFIDISK) 
-EFI_PARTITION=$(sed 's%.*\([0-9]\)$%\1%' <<< $EFIDISK)+EFI_PARTITION=$(sed 's%.*[a-z]\([0-9]\+\)$%\1%' <<< $EFIDISK)
 efibootmgr -q -c -d $EFI_DEVICE -p $EFI_PARTITION -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware" efibootmgr -q -c -d $EFI_DEVICE -p $EFI_PARTITION -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware"
 </code> so if ''mount'' outputs <code>/dev/sda1 on /boot/efi type vfat (rw)</code>EFI_DEVICE would be ''/dev/sda'' and EFI_PARTITION would be ''1'', each components of ''/dev/sda1'', which is the ESP. </code> so if ''mount'' outputs <code>/dev/sda1 on /boot/efi type vfat (rw)</code>EFI_DEVICE would be ''/dev/sda'' and EFI_PARTITION would be ''1'', each components of ''/dev/sda1'', which is the ESP.
 howtos:slackware_admin:linux_kernel_options_for_uefi_and_elilo ()