mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
only add rootflags if they are present
This commit is contained in:
parent
9930030bca
commit
1ad3099dc2
1 changed files with 1 additions and 0 deletions
|
@ -3084,6 +3084,7 @@ ROOTFS="$(blkid -c /dev/null ${PART_ROOT} -o value -s TYPE)"
|
|||
|
||||
getrootflags() {
|
||||
# remove rw for all filesystems and gcpid for nilfs2
|
||||
ROOTFLAGS=""
|
||||
ROOTFLAGS="$(findmnt -m -n -o options -T ${DESTDIR} | sed -e 's/^rw//g' -e 's/,gcpid=.*[0-9]//g')"
|
||||
[[ -n "${ROOTFLAGS}" ]] && ROOTFLAGS="rootflags=${ROOTFLAGS}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue