chore: delete blend user on update

This commit is contained in:
Rudra Saraswat 2024-02-14 13:17:03 +05:30
parent d50e2fc06f
commit d401439a58
2 changed files with 3 additions and 0 deletions

View file

@ -33,6 +33,8 @@ run_latehook() {
mv /new_root/.update_rootfs/var/cache/pacman /new_root/var/cache/pacman mv /new_root/.update_rootfs/var/cache/pacman /new_root/var/cache/pacman
fi fi
chroot /new_root userdel -r blend &>/dev/null
mv /new_root/.update_rootfs /new_root/.old.update_rootfs mv /new_root/.update_rootfs /new_root/.old.update_rootfs
touch /new_root/.successful-update touch /new_root/.successful-update
fi fi

View file

@ -9,6 +9,7 @@ build() {
add_binary grep add_binary grep
add_binary findmnt add_binary findmnt
add_binary uname add_binary uname
add_binary chroot
add_runscript add_runscript
} }