3 type getarg
> /dev
/null
2>&1 || .
/lib
/dracut-lib.sh
5 getargbool
0 rd.live.overlay.overlayfs
&& overlayfs
="yes"
6 getargbool
0 rd.live.overlay.
readonly -d -y readonly_overlay
&& readonly_overlay
="--readonly" || readonly_overlay
=""
8 ROOTFLAGS
="$(getarg rootflags)"
10 if [ -n "$overlayfs" ]; then
11 if [ -n "$readonly_overlay" ] && [ -h /run
/overlayfs-r
]; then
12 ovlfs
=lowerdir
=/run
/overlayfs-r
:/run
/rootfsbase
14 ovlfs
=lowerdir
=/run
/rootfsbase
17 if ! strstr
"$(cat /proc/mounts)" LiveOS_rootfs
; then
18 mount
-t overlay LiveOS_rootfs
-o "$ROOTFLAGS,$ovlfs",upperdir
=/run
/overlayfs
,workdir
=/run
/ovlwork
"$NEWROOT"