grml-debootstrap icon indicating copy to clipboard operation
grml-debootstrap copied to clipboard

`cp: cannot stat '/home/pmenzel/src/grml-debootstrap//extrapackages/': No such file or directory`

Open paulmenzel opened this issue 10 months ago • 1 comments

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
[…]

paulmenzel avatar Apr 02 '24 13:04 paulmenzel

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

mika avatar Apr 02 '24 14:04 mika