fix: create .new_etc first
This commit is contained in:
parent
8238f67f79
commit
bd688e01b9
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ run_latehook() {
|
||||||
# Detect if /etc stage is active.
|
# Detect if /etc stage is active.
|
||||||
if [[ -f /new_root/.etc-stage ]]; then
|
if [[ -f /new_root/.etc-stage ]]; then
|
||||||
# Create new /etc.
|
# Create new /etc.
|
||||||
rm -rf /new_root/.new_etc
|
rm -rf /new_root/.new_etc; cp -r /new_root/etc /new_root/.new_etc
|
||||||
(cd /new_root/.new_etc && find . -type f -print0 | grep -Fxvz -f <(cd "/new_root/.update_rootfs/etc" && find . -type f) | xargs -0 rm -f)
|
(cd /new_root/.new_etc && find . -type f -print0 | grep -Fxvz -f <(cd "/new_root/.update_rootfs/etc" && find . -type f) | xargs -0 rm -f)
|
||||||
(cd /new_root/.new_etc && find . -type l -print0 | grep -Fxvz -f <(cd "/new_root/.update_rootfs/etc" && find . -type l) | xargs -0 rm -f)
|
(cd /new_root/.new_etc && find . -type l -print0 | grep -Fxvz -f <(cd "/new_root/.update_rootfs/etc" && find . -type l) | xargs -0 rm -f)
|
||||||
mkdir -p /.old.varlib
|
mkdir -p /.old.varlib
|
||||||
|
|
Loading…
Reference in a new issue