On 8/13/19 9:58 AM, Erik Jacobson wrote:
Okay, so the boot system just runs mount, and then stops. What commands to you run inside the chroot to reproduce the problem? And what are the expected and actual results of these commands?
I'm literally just running 'su - erikj' at this point and watching it not work.
I have a script in our "fat initrd" miniroot that resets the test case so I can start over quickly without rebooting. It also shows exactly what its doing:
So the full text is:
bash-4.2# bash reset.sh + umount /a + umount /root_ro_nfs + umount /rootfs.rw + mount -o ro,noatime,nocto,actimeo=3600,lookupcache=all,nolock,tcp,vers=3 172.23.255.249:/cm_shared/image/images_ro_nfs/rhel76-aarch64-newkernel /root_ro_nfs + mount -t tmpfs -o mpol=interleave tmpfs /rootfs.rw + mkdir /rootfs.rw/upperdir + mkdir /rootfs.rw/work + mount -t overlay overlay -o lowerdir=/root_ro_nfs,upperdir=/rootfs.rw/upperdir,workdir=/rootfs.rw/work /a bash-4.2# chroot /a sh: no job control in this shell sh-4.2# su - erikj su: warning: cannot change directory to /home/erikj: Operation not supported su: failed to execute /bin/bash: Operation not supported sh-4.2# exit exit
Okay ,so with this info, I was able to trace through the log and the pcap, and everything in them work fine. su is found and loaded (involving finding and loading a lot of libraries, and some login related stuff like PAM and timezone), and the last thing done in both the pcap and the log is to look up /home. This succeeds, returning a file handle and attributes, including a mode of 555. There's no errors that aren't looking up libraries in the wrong place (it uses the library path), so it should be fine. The only thing I can see is that it tries to open /dev/tty and fails. However, that's very early in the process, and it continues for a long time after that, so I'm not sure that is causing it to fail. It never gets to trying to lookup /home/erikj, it just stops at /home. I'm a bit stumped at this point. Maybe a packet trace of a working run of the same thing would be helpful for comparison? Daniel