grml / grml-debootstrap

wrapper around debootstrap
59 stars 27 forks source link

/sbin/grml-debootstrap: line 260: try_umount: command not found #271

Closed jkirk closed 7 months ago

jkirk commented 7 months ago

This does not look good:

root@grml ~ # grml-debootstrap --version
 * grml-debootstrap - version 0.107
 * Report bugs via https://github.com/grml/grml-debootstrap/ or https://grml.org/bugs/

root@grml ~ # grml-debootstrap -r bookworm -t /dev/sda1 --grub /dev/sda --hostname template-debian-bookworm --mirror http://mirror.hetzner.de/debian/packages
 * EFI support detected, but system seems to be running in BIOS mode.
 * grml-debootstrap [0.107] - Please recheck configuration before execution:

   Target:          /dev/sda1
   Install grub:    /dev/sda
   Install efi:     no
   Using release:   bookworm
   Using hostname:  template-debian-bookworm
   Using mirror:    http://mirror.hetzner.de/debian/packages
   Using arch:      amd64
   Config files:    /etc/debootstrap

   Important! Continuing will delete all data from /dev/sda1!

 * Is this ok for you? [y/N] 
 * Exiting as requested.
 -> Failed (rc=1)
/sbin/grml-debootstrap: line 260: try_umount: command not found
Unexpected non-zero exit code 127 in /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap at line 260 329 1107 1179 0 detected!
last bash command: try_umount 3 "${MNTPOINT}"/boot/efi
 -> Failed (rc=1)
/sbin/grml-debootstrap: line 260: try_umount: command not found

I just pressed Enter (and selected N).

This also fails:

root@grml ~ # cat /proc/partitions
major minor  #blocks  name

  11        0     921856 sr0
   8        0   16777216 sda
   7        0     839840 loop0
root@grml ~ # grml-debootstrap -r bookworm -t /dev/sda1 --grub /dev/sda --hostname template-debian-bookworm --mirror http://mirror.hetzner.de/debian/packages
 * EFI support detected, but system seems to be running in BIOS mode.
 * grml-debootstrap [0.107] - Please recheck configuration before execution:

   Target:          /dev/sda1
   Install grub:    /dev/sda
   Install efi:     no
   Using release:   bookworm
   Using hostname:  template-debian-bookworm
   Using mirror:    http://mirror.hetzner.de/debian/packages
   Using arch:      amd64
   Config files:    /etc/debootstrap

   Important! Continuing will delete all data from /dev/sda1!

 * Is this ok for you? [y/N] Y
 * Exiting as requested.
 -> Failed (rc=1)
/sbin/grml-debootstrap: line 260: try_umount: command not found
Unexpected non-zero exit code 127 in /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap at line 260 329 1107 1179 0 detected!
last bash command: try_umount 3 "${MNTPOINT}"/boot/efi
 -> Failed (rc=1)
/sbin/grml-debootstrap: line 260: try_umount: command not found

Seems to be caused by #262 + #264?

This should be fixed before we release Grml 2024.02... 😉