Update util-mount.sh

- more debug
This commit is contained in:
Philip Müller 2021-07-19 19:06:23 +00:00
parent b7b4f48e3a
commit 55603df916

View file

@ -114,6 +114,7 @@ chroot_mount_partitions(){
chroot_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 &&
chroot_mount tmp "$1/tmp" -t tmpfs -o mode=1777,strictatime,nodev,nosuid
chroot_mount /etc/resolv.conf "$1/etc/resolv.conf" --bind
mount
}
chroot_mount() {
@ -143,6 +144,7 @@ chroot_api_efi_mount() {
chroot_mount shm "$1/dev/shm" -t tmpfs -o mode=1777,nosuid,nodev &&
chroot_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 &&
chroot_mount tmp "$1/tmp" -t tmpfs -o mode=1777,strictatime,nodev,nosuid
mount
}
chroot_api_mount() {
@ -158,21 +160,28 @@ chroot_api_mount() {
chroot_mount shm "$1/dev/shm" -t tmpfs -o mode=1777,nosuid,nodev &&
chroot_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 &&
chroot_mount tmp "$1/tmp" -t tmpfs -o mode=1777,strictatime,nodev,nosuid
mount
}
chroot_part_umount() {
info "part_umount: active mounts [%s]" "${CHROOT_ACTIVE_PART_MOUNTS}"
mount
info "umount: [%s]" "${CHROOT_ACTIVE_PART_MOUNTS[@]}"
umount "${CHROOT_ACTIVE_PART_MOUNTS[@]}"
unset CHROOT_ACTIVE_PART_MOUNTS
}
chroot_api_umount() {
info "api_umount: active mounts [%s]" "${CHROOT_ACTIVE_MOUNTS}"
mount
info "umount: [%s]" "${CHROOT_ACTIVE_MOUNTS[@]}"
umount "${CHROOT_ACTIVE_MOUNTS[@]}"
unset CHROOT_ACTIVE_MOUNTS
}
chroot_api_efi_umount() {
info "api_efi_umount: active mounts [%s]" "${CHROOT_ACTIVE_MOUNTS}"
mount
info "umount: [%s]" "${CHROOT_ACTIVE_MOUNTS[@]}"
umount "${CHROOT_ACTIVE_MOUNTS[@]}"
unset CHROOT_ACTIVE_MOUNTS