mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
small code fixes
This commit is contained in:
parent
5e5cf53483
commit
37b45c4585
1 changed files with 5 additions and 3 deletions
|
@ -189,7 +189,9 @@ _gpg_check() {
|
|||
while pgrep -x gpg &>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl stop pacman-init.service
|
||||
if [[ -e /etc/systemd/system/pacman-init.service ]]; then
|
||||
systemctl stop pacman-init.service
|
||||
fi
|
||||
}
|
||||
|
||||
_create_container() {
|
||||
|
@ -385,9 +387,9 @@ _new_environment() {
|
|||
fi
|
||||
sleep 2
|
||||
_clean_kernel_cache
|
||||
rm ${_RAM}/{"${VMLINUZ}",${_INITRD}}
|
||||
rm ${_RAM}/{${VMLINUZ},${_INITRD}}
|
||||
umount ${_RAM} &>/dev/null
|
||||
rm -r ramfs/ &>/dev/null
|
||||
rm -r ${_RAM} &>/dev/null
|
||||
#shellcheck disable=SC2115
|
||||
rm -rf /usr/* &>/dev/null
|
||||
while true; do
|
||||
|
|
Loading…
Reference in a new issue