diff options
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | rc.d/rc.sysinit | 1 | ||||
-rw-r--r-- | sysconfig/readonly-root | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -17,6 +17,7 @@ install: mkdir -p $(ROOT)$(mandir)/man{5,8} mkdir -p $(ROOT)/etc/rwtab.d $(ROOT)/etc/statetab.d mkdir -p $(ROOT)/var/lib/stateless/writable + mkdir -p $(ROOT)/var/lib/stateless/state install -m644 inittab adjtime $(ROOT)/etc if uname -m | grep -q s390 ; then \ diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index fae42e55..07f3d2ed 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -490,6 +490,7 @@ fi if strstr "$cmdline" readonlyroot ; then READONLY=yes [ -z "$RW_MOUNT" ] && RW_MOUNT=/var/lib/stateless/writable + [ -z "$STATE_MOUNT" ] && STATE_MOUNT=/var/lib/stateless/state fi if strstr "$cmdline" noreadonlyroot ; then READONLY=no diff --git a/sysconfig/readonly-root b/sysconfig/readonly-root index 6407c07e..3eb6168e 100644 --- a/sysconfig/readonly-root +++ b/sysconfig/readonly-root @@ -10,4 +10,4 @@ RW_LABEL=stateless-rw # Label for partition with persistent data STATE_LABEL=stateless-state # Where to mount to the persistent data -STATE_MOUNT=/.snapshot +STATE_MOUNT=/var/lib/stateless/state |