aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2012-03-08 15:13:02 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 13:07:24 -0500
commit8e42a26032834a5c621e05fc14103611906fca87 (patch)
tree227bb4508e454b16adb05e8434d0c67a9006aa0b /systemd
parent8f1eaa8c4ba7c26a5f3466147381e931f456b4d2 (diff)
downloadinitscripts-8e42a26032834a5c621e05fc14103611906fca87.tar
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.gz
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.bz2
initscripts-8e42a26032834a5c621e05fc14103611906fca87.tar.xz
initscripts-8e42a26032834a5c621e05fc14103611906fca87.zip
Use /run/initramfs instead of /dev/.initramfs
Current dracut saves state to /run/initramfs, since /run is standard now. This patch makes rc.sysinit and fedora-readonly check for files in /run/initramfs/rwtab and /run/initramfs/state (which is where dracut writes them). It also makes ifup-eth look for lease files in /run/initramfs.
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-readonly4
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly
index 13172892..0690cd45 100755
--- a/systemd/fedora-readonly
+++ b/systemd/fedora-readonly
@@ -81,7 +81,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
mount -n -t tmpfs $RW_OPTIONS $mountopts none "$RW_MOUNT"
fi
- for file in /etc/rwtab /etc/rwtab.d/* /dev/.initramfs/rwtab ; do
+ for file in /etc/rwtab /etc/rwtab.d/* /run/initramfs/rwtab ; do
is_ignored_file "$file" && continue
[ -f $file ] && cat $file | while read type path ; do
case "$type" in
@@ -102,7 +102,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
done
# Use any state passed by initramfs
- [ -d /dev/.initramfs/state ] && cp -a /dev/.initramfs/state/* $RW_MOUNT
+ [ -d /run/initramfs/state ] && cp -a /run/initramfs/state/* $RW_MOUNT
# In theory there should be no more than one network interface active
# this early in the boot process -- the one we're booting from.