I threw together a script which is helping me rebuild core.gz to use in a PXE environment. (Add/modify files, then cpio, etc.)
/opt/bootsync.sh has been built up to wait for the network connection to settle, to grab the MAC address from ETH0 and to test the network connection until the "master server" answers using wget. Once done, it passes the buck to a file called /opt/bootpxe.sh which then uses the MAC to identify the machine and based on a PHP system I'm throwing together, it'll use the MAC to build configuration details for the machine to use (similar to choosing between Micro, Tiny and CorePlus.)
In this file, the server is being used for literally everything from sharing repo files down to hosting r/w hard drive images (ext2... for some reason or another TC4 doesn't like ext3 or above on a non-block-device.) This got me to thinking... if I have a file such as server:/profiles/tc4/hdd1_ext2.fs (512MB ext2 formatted drive image) which in a sense is nothing more than a copy of TC's directory structure (and static files that otherwise would require filetool to manage) wouldn't it be wonderful if the drive image itself could be passed to the kernel and that file used as a boot device (similar to a frugal install) and thus skipping all of these otherwise unnecessary steps?
My thought is, if we were able to get the kernel to (via CIFS most likely?) mount the drive and have it rooted ( / ) merging the core.gz contents with the newly mounted contents (mount overwriting core) and voila'... you have a drive-less machine using external storage in a static-write environment. (It's not exactly thin-client, but it's a direction I'd like to take!)
Q1: Is this direction already an option and I've just missed it in my boot command research?
Q2: When loading TCZ files, once they're mounted (/tmp/tcloop) are there caveats of deleting those original TCZ files (and DEP/TXT) as to me, they're just taking up memory (storage)?
Q3: For some reason or another, when rebuilding core.gz, tce-load complains about a permission problem under /usr/local/tce.installed (denied) though I've manually set permissions to 775 root.staff in /opt/bootsync.sh as was seen fram a clean install. Any ideas as to what might be causing this? (I have it being sent to /dev/null so it's not a major eye-sore, it's just "not right" thus I'm asking.)
Sorry for the multiple post; it just made sense to me to keep things together as opposed to wasting three separate posts for somewhat related content.
Thanks,
TJ