Closed bittorf closed 5 months ago
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C ls -l /home/bastian/software/live-bootstrap/tmp/sysc_mnt
total 16
drwx------ 2 root root 16384 Mar 11 13:10 lost+found
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C sudo rm -fR /home/bastian/software/live-bootstrap/tmp/sysc_mnt
rm: cannot remove '/home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found': Directory not empty
bastian@ryzen:~/software/live-bootstrap$ sudo chmod -R 777 /home/bastian/software/live-bootstrap/tmp/sysc_mnt
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C sudo rm -fR /home/bastian/software/live-bootstrap/tmp/sysc_mnt
rm: cannot remove '/home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found': Directory not empty
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C ls -l /home/bastian/software/live-bootstrap/tmp/sysc_mnt
total 16
drwxrwxrwx 2 root root 16384 Mar 11 13:10 lost+found
11
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C sudo rm -fR /home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found
rm: cannot remove '/home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found': Directory not empty
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C sudo rm -fR /home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found/
bastian@ryzen:~/software/live-bootstrap$ ls -l /home/bastian/software/live-bootstrap/tmp/sysc_mnt/lost+found/
insgesamt 0
bastian@ryzen:~/software/live-bootstrap$ lsattr tmp/sysc_mnt/
--------------e------- tmp/sysc_mnt/lost+found
bastian@ryzen:~/software/live-bootstrap$ mount | grep live-bootstrap
/dev/loop2p1 on /home/bastian/software/live-bootstrap/tmp/sysc_mnt type ext4 (rw,relatime)
bastian@ryzen:~/software/live-bootstrap$ sudo umount /dev/loop2p1
bastian@ryzen:~/software/live-bootstrap$ LC_ALL=C sudo rm -fR /home/bastian/software/live-bootstrap/tmp && echo OK
OK
...really, this should autorecover...
Yeah, the rootfs.py
infra doesn't really respond properly to pre-bootstrap failures right now.
With the abandonment of the "tmp" concept in #368 this is no longer applicable; the user is expected to use a new target directory for each bootstrap (or delete the previous one).
$ ./rootfs.py --qemu --external-sources
OK, download error? try again: $ ./rootfs.py --qemu --external-sources
What to do now?