]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
parse-root-opts: first check for ro, later for rw
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Thu, 26 Jul 2012 13:58:27 +0000 (15:58 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 15:35:59 +0000 (17:35 +0200)
This order is already in 98usrmount.

modules.d/99base/parse-root-opts.sh

index 7b0b758563cc62b950002d6ea9f7dafe58a7cb85..b74eeb34bda7f83443cba439449c271160be6621 100755 (executable)
@@ -5,8 +5,8 @@
 root=$(getarg root=)
 
 rflags="$(getarg rootflags=)"
-getargbool 0 rw && rflags="${rflags},rw"
 getargbool 0 ro && rflags="${rflags},ro"
+getargbool 0 rw && rflags="${rflags},rw"
 rflags="${rflags#,}"
 
 fstype="$(getarg rootfstype=)"