Added dpkg locked check and install cleanup.

This commit is contained in:
Scott Duensing 2025-06-08 21:06:03 -05:00
parent 48cc918251
commit aa90f1e34e

View file

@ -1,13 +1,28 @@
function unsafeUpdate() {
echo "Running user updates."
# Clean up after installation.
if [[ -f install.sh ]]; then
rm install.sh
fi
if [[ -d chromebook-linux ]]; then
rm -rf chromebook-linux
fi
# Additional updates that require 'user'.
true
}
function unsafeUpdateRoot() {
echo "Running root updates."
# Handle system updates.
apt-get update
while : ; do
apt-get update
[[ $? -ne 0 ]] || break
done
apt-get -fy upgrade
apt-get -fy dist-upgrade
apt-get -fy autoremove