Project

General

Profile

action #73465

/etc/default/grub missed if rootfs<>btrfs

Added by EDV_Lotse 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bug
Target version:
Start date:
2020-10-17
Due date:
% Done:

100%

Estimated time:

Description

Wegen einen Tippfehler (grub2.nobtrfs statt grub.nobtrfs) bleibt die Datei /etc/defaults/grub leer, deswegen fehlen im grub2.cfg manche Sachen.

History

#1 Updated by EDV_Lotse 10 months ago

  • % Done changed from 0 to 90
  1. grub2.nobtrfs ==> grub.nobtrfs
  2. /etc/default/grub.zfs
  3. Modify check-Script:

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
...

#2 Updated by EDV_Lotse 10 months ago

  • % Done changed from 90 to 100

Testing is OK.

#3 Updated by EDV_Lotse 10 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF