> /mnt/usr/sbin/chroot /mnt /usr/local/libexec/reorder_kernel > > ... > > + mail -Es "$(hostname) Kernel relink info" root >/dev/null
No, that isn't cool. Yes, we are going to link in the install media. But not by reusing code that way. Any chroot handling must be done much more carefully, and select the right commands/subsystems to use more carefully.