Skip to content

Commit

Permalink
Update chroot_build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored May 9, 2024
1 parent 45eb9b8 commit 6e97bdd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions files/chroot_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ apt-get autoremove -y

echo >&2 "===]> Info: Cleanup the chroot environment... "

truncate -s 0 /etc/machine-id
rm /sbin/initctl
dpkg-divert --rename --remove /sbin/initctl
apt-get clean
rm -rf /tmp/* ~/.bash_history
rm -rf /tmp/setup_files
truncate -s 0 /etc/machine-id || true
rm /sbin/initctl || true
dpkg-divert --rename --remove /sbin/initctl || true
apt-get clean || true
rm -rf /tmp/* ~/.bash_history || true
rm -rf /tmp/setup_files || true

umount -lf /dev/pts
umount -lf /sys
Expand Down

0 comments on commit 6e97bdd

Please sign in to comment.