From 67204240bc684555e8241c1856313d2f6fd16ed6 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Sat, 16 Sep 2023 18:04:30 +0200 Subject: [PATCH] Build cleanup --- arkanium-build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arkanium-build b/arkanium-build index 077af5f..7f1047c 100755 --- a/arkanium-build +++ b/arkanium-build @@ -149,13 +149,14 @@ if [[ $type == 'archlinux' ]]; then # Remove subvolumes created by systemd [[ -d $workdir/var/lib/portables ]] && - printf "\e[1;34m-->\e[0m\e[1m Removing systemd subvolume var/lib/portables\e[0m\n" && + printf "\e[1;34m-->\e[0m\e[1m Removing systemd subvolume var/lib/portables\e[0m\n" btrfs subvolume delete $workdir/var/lib/portables [[ -d $workdir/var/lib/machines ]] && - printf "\e[1;34m-->\e[0m\e[1m Removing systemd subvolume var/lib/machines\e[0m\n" && + printf "\e[1;34m-->\e[0m\e[1m Removing systemd subvolume var/lib/machines\e[0m\n" btrfs subvolume delete $workdir/var/lib/machines # Clear pacman cache + printf "\e[1;34m-->\e[0m\e[1m Clearing pacman cache\e[0m\n" rm -rf $workdir/var/cache/pacman/pkg/* rm -rf $workdir/var/lib/pacman/local/* @@ -165,9 +166,8 @@ if [[ $type == 'archlinux' ]]; then btrfs property set -ts $workdir/etc ro true btrfs property set -ts $workdir/var ro true - printf "\e[1;34m-->\e[0m\e[1m Generating psuedo-random image name...\e[0m\n" - # Generate random name for new image + printf "\e[1;34m-->\e[0m\e[1m Generating psuedo-random image name...\e[0m\n" declare -r image_name=$(gen_random_string) printf "$image_name\n" @@ -187,4 +187,4 @@ if [[ $type == 'archlinux' ]]; then cleanup_and_quit -fi \ No newline at end of file +fi