We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6af984 commit 9041bbeCopy full SHA for 9041bbe
scripts/base.sh
@@ -102,7 +102,13 @@ finalize() {
102
echo "** Generating disk image $1-$DATE"
103
echo '*****'
104
rm -f "$WORK/usr/sbin/policy-rc.d"
105
- rm -f "$WORK/etc/machine-id" "$WORK/var/lib/dbus/machine-id" || true
+
106
+ # erase those files only if not symlinks
107
+ for foo in /etc/machine-id /var/lib/dbus/machine-id; do
108
+ if [ -f "$WORK$foo" -a ! -L "$WORK$foo" ]; then
109
+ rm -f "$WORK$foo"
110
+ fi
111
+ done
112
echo localhost >"$WORK/etc/hostname"
113
114
# generate /etc/shells-release file
0 commit comments