Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
playground
>
dracut
> 0029-mount-root-also-filter-defaults-from-mount-options.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0029-mount-root-also-filter-defaults-from-mount-options.patch of Package dracut
From 3501a9be20414e9309c4c3245c8b695a24fdefc0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Thu, 18 Feb 2010 18:05:51 +0100 Subject: [PATCH] mount-root: also filter "defaults" from mount options --- modules.d/95rootfs-block/mount-root.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index 0ac156d..c6b24da 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -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" \ -- 1.8.3.1