]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-cmdline.sh: unset "UNSET" $root
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Aug 2016 09:24:47 +0000 (11:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 12:13:44 +0000 (13:13 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1365667
caused by commit 9aa224cc

modules.d/98systemd/dracut-cmdline.sh

index 17b30a34704849f33c2b0eab1968e54f080545ab..630f3f9207400a5827818aec6066d53966d42486 100755 (executable)
@@ -79,6 +79,8 @@ esac
 [ -z "${root}${root_unset}" ] && die "Empty root= argument"
 [ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
 
+[ "$root" = "UNSET" ] && unset root
+
 export root rflags fstype netroot NEWROOT
 
 export -p > /dracut-state.sh