diff --git a/ansible/tasks/umount.yaml b/ansible/tasks/umount.yaml index 3b60320..dbf1414 100644 --- a/ansible/tasks/umount.yaml +++ b/ansible/tasks/umount.yaml @@ -1,9 +1,4 @@ --- - name: Umount pseudo filesystems connection: local - shell: umount '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}{{ item }}' - with_items: - - /proc - - /dev/pts - - /dev - - /sys \ No newline at end of file + shell: umount --recursive '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}' \ No newline at end of file diff --git a/build_desktop.sh b/build_desktop.sh index d7865d8..ec3896e 100755 --- a/build_desktop.sh +++ b/build_desktop.sh @@ -3,7 +3,7 @@ set -e printf "Copying base rootfs... " -cp -rp $HEADLESS_DIR/. $DESKTOP_DIR/ +cp -rax $HEADLESS_DIR/. $DESKTOP_DIR/ printf "(OK)\n" echo "Run desktop installation tasks..." diff --git a/build_grub.sh b/build_grub.sh index eb44703..20ce962 100755 --- a/build_grub.sh +++ b/build_grub.sh @@ -51,7 +51,7 @@ mount $ROOT_UUID $GRUB_DIR printf "(OK)\n" printf "Copying filesystem to image... " -cp -rp $INPUT_DIR/. $GRUB_DIR/ +cp -rax $INPUT_DIR/. $GRUB_DIR/ printf "(OK)\n" printf "Mounting efi filesystem... " diff --git a/build_headless.sh b/build_headless.sh index 0fda87c..399554f 100755 --- a/build_headless.sh +++ b/build_headless.sh @@ -3,7 +3,7 @@ set -e printf "Copying base rootfs... " -cp -rp $BASE_DIR/. $HEADLESS_DIR/ +cp -rax $BASE_DIR/. $HEADLESS_DIR/ printf "(OK)\n" echo "Run headless installation tasks..." diff --git a/build_tegra.sh b/build_tegra.sh index 3f4a9ac..bc2d1ef 100755 --- a/build_tegra.sh +++ b/build_tegra.sh @@ -30,7 +30,7 @@ echo "Downloading Tegra assets... (OK)" printf "Copying rootfs assets... " rm -fr $TEGRA_DIR/Linux_for_Tegra/rootfs/* -cp -rp $INPUT_DIR/. $TEGRA_DIR/Linux_for_Tegra/rootfs/ +cp -rax $INPUT_DIR/. $TEGRA_DIR/Linux_for_Tegra/rootfs/ printf "(OK)\n" printf "Ameliorate Tegra installer... "