mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
cleanup mkinitcpio files from booted system
This commit is contained in:
parent
0435f0d3cf
commit
d08e884c72
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ if [[ "${TTY}" = "tty1" ]]; then
|
|||
rsync -aAXv --numeric-ids \
|
||||
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/sysroot/*"} \
|
||||
"/" "/sysroot" &>/dev/null
|
||||
# cleanup mkinitcpio directories and files
|
||||
rm -rf /sysroot/{hooks,install,kernel,new_root,sysroot} &>/dev/null
|
||||
rm -f /sysroot/{VERSION,config,buildconfig,init} &>/dev/null
|
||||
# systemd needs this for root_switch
|
||||
touch /etc/initrd-release
|
||||
systemctl start initrd-switch-root
|
||||
|
|
Loading…
Reference in a new issue