usrmount: Fix miss-detection of btrfs subvolumes.
PATCH 1/1 usrmount: Fix miss-detection of btrfs subvolumes.
This causes the root FS options to be incorrectly applied to to /usr In some cases this can cause boot failure e.g. due to and XFS /usr not supporting the 'acl' option from the ext4 root FS.
https://bugs.mageia.org/show_bug.cgi?id=9884
--- modules.d/98usrmount/mount-usr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
modules.d/98usrmount/mount-usr.sh +2 -2
@@ -61,14 +61,14 @@ mount_usr() LABEL=*) _dev="$(echo $_dev | sed 's,/,\\x2f,g')" _dev="/dev/disk/by-label/${_dev#LABEL=}" - ;; + ;; UUID=*) _dev="${_dev#block:}" _dev="/dev/disk/by-uuid/${_dev#UUID=}" ;; esac if strstr "$_opts" "subvol=" && \ - [ "${root#block:}" -ef $_dev ] + [ "${root#block:}" -ef $_dev ] && \ [ -n "$rflags" ]; then # for btrfs subvolumes we have to mount /usr with the same rflags rflags=$(filtersubvol "$rflags")
Signature · 1 line
1.8.1.5
A message that is not in the archive (sent off-list or not yet received): 1367597765-26656-1-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org
'Twas brillig, and Colin Guthrie at 03/05/13 17:16 did gyre and gimble:
Quoted 5 lines
This causes the root FS options to be incorrectly applied to to /usr In some cases this can cause boot failure e.g. due to and XFS /usr not supporting the 'acl' option from the ext4 root FS.
For the sake of history, committed asd57b8833c43d297004d8393d8e54a2ab2655a899
Thanks :)
Col
Signature · 10 lines
Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/