Actions
action #73465
closed/etc/default/grub missed if rootfs<>btrfs
Description
Wegen einen Tippfehler (grub2.nobtrfs statt grub.nobtrfs) bleibt die Datei /etc/defaults/grub leer, deswegen fehlen im grub2.cfg manche Sachen.
Actions
Added by EDV_Lotse over 4 years ago. Updated over 4 years ago.
Description
Wegen einen Tippfehler (grub2.nobtrfs statt grub.nobtrfs) bleibt die Datei /etc/defaults/grub leer, deswegen fehlen im grub2.cfg manche Sachen.
A)
rootfs=cat /etc/fstab | grep "/\s"|tr -s " "|cut -d " " -f3
==>
rootfs=mount | grep "/\s" | tr -s " " | cut -d " " -f5
B)
if [[ $rootfs == "btrfs" ]]
...
==>
case $rootfs in
...