]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
mount-root: also filter "defaults" from mount options
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Feb 2010 17:05:51 +0000 (18:05 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Feb 2010 17:05:51 +0000 (18:05 +0100)
modules.d/95rootfs-block/mount-root.sh

index 0ac156d6b889641ab19df51217cdd5583b6721f5..c6b24dad193d7d3c1623c98cb170f306d9d2bc6f 100755 (executable)
@@ -13,6 +13,7 @@ filter_rootopts() {
     while [ $# -gt 0 ]; do
         case $1 in
             rw|ro);;
+           defaults);;
             *)
                 v="$v,${1}";;
         esac
@@ -48,7 +49,7 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
 
        rootopts=$(filter_rootopts $rootopts)
 
-       if [ -n "$rootopts" -a "$rootopts" != "defaults" ]; then
+       if [ -n "$rootopts" ]; then
             umount $NEWROOT
             info "Remounting ${root#block:} with -o $rootopts,$rflags"
             mount -t "$rootfs" -o "$rflags","$rootopts" \