Package: initramfs-tools Version: 0.133 Severity: wishlist Hi,
update-initramfs should clean up the environment. Especially, the ROOT variable should not be handed down to mkinitramfs. I just spent two hours to get a host after a hostname and volume group name change to boot again because the machine kept picking up the host name over and over again. Reason was that I was rebuilding the initramfs from the initramfs after chrooting into the actual system. All these operations preserved the ROOT environment variable set to the wrong name, which mkinitramfs kept picking up and writing it to the next initramfs, repeat at libitum. mkinitramfs takes whatever is in the ROOT environment variable as -r option, hardcoding the value as ROOT. The least invasive fix would be to zero out the environment variables that mkinitramfs parses its command line into, compress, CONFDIR, outfile, keep, ROOT and verbose before the parsing code, but it would probaby be a cleaner approach to only allow the documented environment variables to stay in the environment passed in from the (probably human) caller. Greetings Marc