diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/build_image.sh b/build_image.sh old mode 100644 new mode 100755 diff --git a/build_rootfs.sh b/build_rootfs.sh old mode 100644 new mode 100755 index 49ee94c..6f1b176 --- a/build_rootfs.sh +++ b/build_rootfs.sh @@ -42,7 +42,7 @@ rootfs_dir=$(realpath "${1}") release_name="${2}" debootstrap $release_name $rootfs_dir http://deb.debian.org/debian/ -cp -r rootfs/* $rootfs_dir +cp -ar rootfs/* $rootfs_dir chroot_mounts="proc sys dev run" for mountpoint in $chroot_mounts; do @@ -54,7 +54,7 @@ chroot $rootfs_dir /bin/bash -c "${chroot_command}" chroot_mounts="proc sys dev run" for mountpoint in $chroot_mounts; do - umount "${rootfs_dir}/$mountpoint" + umount -l "${rootfs_dir}/$mountpoint" done echo "rootfs has been created" \ No newline at end of file diff --git a/patch_initramfs.sh b/patch_initramfs.sh old mode 100644 new mode 100755 diff --git a/patch_rootfs.sh b/patch_rootfs.sh old mode 100644 new mode 100755 diff --git a/rootfs/opt/setup_rootfs.sh b/rootfs/opt/setup_rootfs.sh old mode 100644 new mode 100755 index 0f0b981..35f1985 --- a/rootfs/opt/setup_rootfs.sh +++ b/rootfs/opt/setup_rootfs.sh @@ -26,7 +26,7 @@ apt-get update apt-get upgrade -y #install desktop -apt-get install -y xfce4 xfce4-goodies network-manager blueman firefox-esr sudo +apt-get install -y task-xfce-desktop cloud-utils #set up hostname and username read -p "Enter the hostname for the system: " hostname