grml-debootstrap
grml-debootstrap copied to clipboard
`cp: cannot stat '/home/pmenzel/src/grml-debootstrap//extrapackages/': No such file or directory`
I thought this worked in the past, but without extrapackages/
it fails:
$ git log --no-decorate --oneline -1
fa44c61 Release new version 0.108
$ sudo ~/src/grml-debootstrap/grml-debootstrap -d /home/pmenzel/src/grml-debootstrap/ --arch=amd64 -r sid --vmfile --vmsize 100G --target /scratch/local2/pmenzel/debian-20240402.img
[…]
I: Base system installed successfully.
* Preparing chroot system
cp: cannot stat '/home/pmenzel/src/grml-debootstrap//extrapackages/': No such file or directory
Unexpected non-zero exit code 1 in /home/pmenzel/src/grml-debootstrap/grml-debootstrap /home/pmenzel/src/grml-debootstrap/grml-debootstrap /home/pmenzel/src/grml-debootstrap/grml-debootstrap at line 1862 2132 0 detected!
last bash command: cp $VERBOSE -a -L "${CONFFILES}"/extrapackages/ "${MNTPOINT}"/etc/debootstrap/
-> Failed (rc=1)
* Removing /var/cache/grml-debootstrap/variables_debian-20240402.img
* Removing /var/cache/grml-debootstrap/stages_debian-20240402.img
rmdir: failed to remove '/mnt/debootstrap.75962': Device or resource busy
* Unmounting /mnt/debootstrap.75962
[…]
I'd assume this is related to the fact that we have more strict error/failure checking recently, and while it was failing also in the past it wasn't considered fatal.
Probably worth checking for existence of extrapackages
directory and only use it then, thx