Commit 41e5e457 authored by Franco Fichtner's avatar Franco Fichtner

rc: move file wipe to non-install media path

parent 636df2cf
...@@ -33,6 +33,12 @@ done ...@@ -33,6 +33,12 @@ done
if _tmpdir=$(mktemp -d -q /.diskless.XXXXXX); then if _tmpdir=$(mktemp -d -q /.diskless.XXXXXX); then
# only remove the directory # only remove the directory
rmdir ${_tmpdir} rmdir ${_tmpdir}
# cleanup configuration files from previous instance
# (does not work with install media unfortunately)
/bin/rm -rf /var/run/*
/bin/rm -rf /var/etc/*
/bin/rm -rf /var/tmp/*
else else
# fake a writeable environment in some subdirs # fake a writeable environment in some subdirs
for i in conf etc home root usr var; do for i in conf etc home root usr var; do
...@@ -146,11 +152,6 @@ fi ...@@ -146,11 +152,6 @@ fi
# make some directories in /var # make some directories in /var
/bin/mkdir -p /var/run /var/log /var/etc /var/db/entropy /var/at/jobs/ /var/empty 2>/dev/null /bin/mkdir -p /var/run /var/log /var/etc /var/db/entropy /var/at/jobs/ /var/empty 2>/dev/null
/bin/rm -rf /var/run/*
# Cleanup configuration files from previous instance
/bin/rm -rf /var/etc/*
/bin/rm -rf /var/tmp/*
echo -n "Creating symlinks..." echo -n "Creating symlinks..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment