Skip to content

Commit

Permalink
Reinstall apk packages on reboot
Browse files Browse the repository at this point in the history
Because we are running from a RAM disk, any packages not installed
from the ISO are removed after a reboot. They are still registered
in /etc/apk/world (which is on /mnt/data/etc/apk/world), and the
packages themselves are cached on /mnt/data/apk/cache, so reinstalling
is quick and easy.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Jan 16, 2024
1 parent cfd5a90 commit b58f083
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ if [ "$(awk '$2 == "/" {print $3}' /proc/mounts)" == "tmpfs" ]; then
done
# Make sure to re-mount any mount points under /tmp
mount -a
# Reinstall packages from /mnt/data/apk/cache into the RAM disk
apk fix --no-network
fi

0 comments on commit b58f083

Please sign in to comment.