1
0
Fork 0

remove /chroot-scripts after chrooting is done

This commit is contained in:
Pratham Patel 2022-11-20 17:18:22 +05:30
parent 720d513970
commit a880a5f717
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ genfstab -U /mnt >> /mnt/etc/fstab
mkdir -p /mnt/chroot-scripts
cp scripts/chroot-setup.sh /mnt/chroot-scripts/
arch-chroot /mnt bash /chroot-scripts/chroot-setup.sh "$CPU_VENDOR_NAME" "$ROOT_PARTITION"
rm -rf /mnt/chroot-scripts
if [[ $? -ne 0 ]]; then
exit 1
fi