@@ -16,9 +16,7 @@ function mount_chroot() {
16
16
local target
17
17
target=" $( realpath " $1 " ) " # normalize, remove last slash if dir
18
18
display_alert " mount_chroot" " $target " " debug"
19
-
20
19
mkdir -p " ${target} /run/user/0"
21
- mkdir -p " ${target} /armbian/cache"
22
20
23
21
# tmpfs size=50% is the Linux default, but we need more.
24
22
mount -t tmpfs -o " size=99%" tmpfs " ${target} /tmp"
@@ -28,8 +26,6 @@ function mount_chroot() {
28
26
mount -t sysfs chsys " ${target} " /sys
29
27
mount --bind /dev " ${target} " /dev
30
28
mount -t devpts chpts " ${target} " /dev/pts || mount --bind /dev/pts " ${target} " /dev/pts
31
-
32
- mount --bind /armbian/cache " ${target} /armbian/cache"
33
29
}
34
30
35
31
# umount_chroot <target>
@@ -40,7 +36,7 @@ function umount_chroot() {
40
36
local target
41
37
target=" $( realpath " $1 " ) " # normalize, remove last slash if dir
42
38
display_alert " Unmounting" " $target " " info"
43
- while grep -Eq " ${target} \/(dev|proc|sys|tmp|var\/tmp|run\/user\/0|armbian\/cache )" /proc/mounts; do
39
+ while grep -Eq " ${target} \/(dev|proc|sys|tmp|var\/tmp|run\/user\/0)" /proc/mounts; do
44
40
display_alert " Unmounting..." " target: ${target} " " debug"
45
41
umount " ${target} " /dev/pts || true
46
42
umount --recursive " ${target} " /dev || true
@@ -49,7 +45,6 @@ function umount_chroot() {
49
45
umount " ${target} " /tmp || true
50
46
umount " ${target} " /var/tmp || true
51
47
umount " ${target} " /run/user/0 || true
52
- umount " ${target} " /armbian/cache || true
53
48
wait_for_disk_sync " after umount chroot"
54
49
run_host_command_logged grep -E " '${target} /(dev|proc|sys|tmp)'" /proc/mounts " ||" true
55
50
done
0 commit comments