mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
common: follow-up to 3cb7606, prevent host key regen on boot
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -15,3 +15,9 @@ rm "$TARGET_DIR/etc/os-release"
|
||||
} > "$TARGET_DIR/etc/os-release"
|
||||
|
||||
echo "Inf/IX by KernelKit $GIT_VERSION -- $(date +"%b %e %H:%M %Z %Y")" > "$TARGET_DIR/etc/version"
|
||||
|
||||
# Prevent regen of host key at every boot, /etc is saved across reboots
|
||||
if [ -L "$TARGET_DIR/etc/dropbear" ]; then
|
||||
rm "$TARGET_DIR/etc/dropbear"
|
||||
mkdir "$TARGET_DIR/etc/dropbear"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user