remove rw removing on boot commandline, new systemd will need rw

This commit is contained in:
Tobias Powalowski 2013-07-26 11:52:59 +02:00
parent 122bcbc9e5
commit 2160e93c6a

View file

@ -3040,9 +3040,9 @@ getrootfstype() {
}
getrootflags() {
# remove rw for all filesystems and gcpid for nilfs2
# remove gcpid for nilfs2
ROOTFLAGS=""
ROOTFLAGS="$(findmnt -m -n -o options -T ${DESTDIR} | sed -e 's/^rw//g' -e 's/,gcpid=.*[0-9]//g')"
ROOTFLAGS="$(findmnt -m -n -o options -T ${DESTDIR} | sed -e 's/,gcpid=.*[0-9]//g')"
[[ -n "${ROOTFLAGS}" ]] && ROOTFLAGS="rootflags=${ROOTFLAGS}"
}