motd link not created properly on systems build in chroot
|Reported by:||jrollins||Owned by:||jrollins|
Description (last modified by jrollins)
I built a debirf minimal image inside of a chroot, and when I booted it (which booted fine, fwiw) I noticed that the motd was missing. I noticed that the motd link was broken, and therefore motd was not displaying at all:
INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. Debian GNU/Linux lenny/sid debirf-minimal ttyS0 debirf-minimal login: root 0 debirf-minimal:~# ls -al /etc/motd lrwxrwxrwx 1 root root 36 Nov 6 20:31 /etc/motd -> /home/test /minimal/root/var/run/motd 0 debirf-minimal:~#
Building the image in a non-chroot environment causes no problems with the motd in the resulting image.
I don't have an idea about what could be causing this. Could it have something to do with how cpio creates the archive in the chroot?