core-system-scripts

Scripts submodule for the core-system repository
git clone https://ccx.te2000.cz/git/core-system-scripts
Log | Files | Refs

commit 1e67ced4151fb14f852d449e97f318ceb0040179
parent c81f3b1c9d9179fceffc5a1750d6dc72ce58ddba
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Wed, 27 Jul 2022 02:59:27 +0200

Exclude /var/lib/dhcpcd from overwrite.

The intent is to preserve dhcp state so IP address won't be jumping
around too much after reboot.

Diffstat:
Moverwrite_from_image | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/overwrite_from_image b/overwrite_from_image @@ -8,4 +8,8 @@ if ! rsync -l $img/boot/extlinux.conf; then fi mount -o remount,rw /boot || exit $? rsync -aAvPx $img/boot/ /boot/ --delete --exclude ldlinux.\* || exit $? -rsync -aAvPx $img/ / --delete --exclude root/.\*history --exclude root/.local/share || exit $? +rsync -aAvPx $img/ / --delete \ + --exclude root/.\*history \ + --exclude root/.local/share \ + --exclude var/lib/dhcpcd\ + || exit $?