diff options
author | Milton D. Miller II <miltonm@us.ibm.com> | 2016-02-28 16:07:46 -0600 |
---|---|---|
committer | Milton D. Miller II <miltonm@us.ibm.com> | 2016-03-04 10:51:04 -0600 |
commit | c3697de01b798f1ed69652d8463a355e6b9534cd (patch) | |
tree | 585e582e69409742529f433121e6caaba008999c | |
parent | ba2b7c9f51e7f6c68571cf0dce17d538ed1fcb49 (diff) | |
download | talos-openbmc-c3697de01b798f1ed69652d8463a355e6b9534cd.tar.gz talos-openbmc-c3697de01b798f1ed69652d8463a355e6b9534cd.zip |
update: Save files using the same mount path as init
Use the full /run/initramfs/rw path for the mount point of the
read-write filesystem.
This prevents creating and directories in / when it is invoked
before shutdown.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rwxr-xr-x | meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh index 1a1195382..e58056109 100755 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh @@ -55,7 +55,7 @@ rwdev=/dev/mtdblock${rwfs#mtd} rwopts=rw rorwopts=ro${rwopts#rw} -rwdir=rw +rwdir=/run/initramfs/rw upper=$rwdir/cow save=/run/save/${upper##*/} |