Closed ThePrez closed 3 years ago
It appears it's not setting up any BSD-style pty pairs, just the AT&T UNIX System V style.
See https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/filesreference/pty.html and https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_72/rzalf/rzalfpty.htm for more info
We can extract this in to its own file as mentioned and any lst file which uses it can reference the new lst file.
cc @earleye2018 as an interested party on this one.
This is useful for cloning chroot containers. I've done this in the past my extracting out the mknod parts of the minimal
.lst
file and running it, but it also requires a deletion of an existing regular file in some cases (because an rsync will copy the device as a zero-byte file).I think the fix is simply to create a
regen_devices.lst
that only has therm
commands and themknod
section fromminimal.lst
(but also with the tty devices as in #63 )