75f812af59
- fix btrfs mount flags for /usr - degrade message about missing tools for stripping Resolves: rhbz#958519 - set environment vars DRACUT_SYSTEMD, NEWROOT in service file Resolves: rhbz#963159 - don't add volatile swap partitions to host_devs - add libssl.so.10 to make kdump work with fips mode - readd selinux dracut module for kdump - url-lib/url-lib.sh: turn off curl globbing Resolves: rhbz#907497 - include btrfs-zero-log in the initramfs Resolves: rhbz#963257 - proper NAME the network interfaces Resolves: rhbz#965842 - install default font latarcyrheb-sun16 Resolves: rhbz#927564 - optionally install /etc/pcmcia/config.opts Resolves: rhbz#920076 - fix ONBOOT for slaves, set TYPE=Bond for bonding Resolves: rhbz#919001 - add nvme kernel module Resolves: rhbz#910734 - add xfs_metadump - selinux: load_policy script fix - add hid-hyperv and hv-vmbus kernel modules - add parameter rd.live.squashimg Resolves: rhbz#789036 rhbz#782108 - wait for all required interfaces if "rd.neednet=1" Resolves: rhbz#801829 - lvm: add tools for thin provisioning Resolves: rhbz#921235 - ifcfg/write-ifcfg.sh: fixed ifcfg file generation - do not wait for mpath* devices Resolves: rhbz#969068
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
From d57b8833c43d297004d8393d8e54a2ab2655a899 Mon Sep 17 00:00:00 2001
|
|
From: Colin Guthrie <colin@mageia.org>
|
|
Date: Fri, 3 May 2013 17:16:05 +0100
|
|
Subject: [PATCH] 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(-)
|
|
|
|
diff --git a/modules.d/98usrmount/mount-usr.sh b/modules.d/98usrmount/mount-usr.sh
|
|
index a4a66ae..de7dcc2 100755
|
|
--- a/modules.d/98usrmount/mount-usr.sh
|
|
+++ b/modules.d/98usrmount/mount-usr.sh
|
|
@@ -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")
|