2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-22 00:49:30 +00:00
Files
xcat-core/xCAT-test
Daniel Hilst 100d537a7d test(xcat-core): capture the Genesis root home directory left at /root
mknb writes the management node key to /.ssh/authorized_keys for the legacy
Genesis image. sshd reads that file only while the home directory of root is
/. The dracut cmdline hook makes it / by deleting the root entry the image
ships and appending its own.

The test runs that rewrite against both root entry shapes dracut writes, for
all three hooks, and reads back /etc/passwd. It also keeps a user name that
starts with root in the file, so a wider delete cannot pass unnoticed.

Six of the eighteen assertions fail today.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-05 00:36:25 -03:00
..
2018-04-26 15:15:47 -04:00