Compare commits

...

2 Commits

Author SHA1 Message Date
BodgeMaster 61646d9d04 backup-fs: debug in a shell 2023-06-29 14:33:05 +02:00
BodgeMaster 8bcfeaee57 install stage 1: remove now useless stdin workaround for backup-fs 2023-06-29 14:31:53 +02:00
2 changed files with 3 additions and 18 deletions

View File

@ -323,8 +323,6 @@ wget --output-document=/mnt/target/etc/kernel.d/post-remove/99-void-usb https://
chmod 744 /mnt/target/etc/kernel.d/post-remove/99-void-usb
run_in_target xbps-reconfigure -fa
# running chroot directly bc run_in_target function doesnt allow user input
chroot /mnt/target /opt/void-usb/backup-fs
run_in_target /opt/void-usb/backup-fs
#

View File

@ -27,21 +27,8 @@ function yesno {
done
}
# Overlay should still be mounted, right?
cat /proc/mounts
read -p "
press any key" -n1 DISCARD_ME < $TTY_OR_CONSOLE
# And no services running?
ps aux | grep -vF "[kworker"
read -p "
press any key" -n1 DISCARD_ME < $TTY_OR_CONSOLE
#TODO: remove above debugging sanity checks
#TODO: remove
bash -i < $TTY_OR_CONSOLE
#TODO: refuse to run if system is running