diskless-newimage [imagedir]
If any required information is omitted or invalid or the command line, it will be prompted for.
All of these values are checked to ensure that they are valid. Help may be obtained by pushed ? at any prompt.
If any required information is omitted or invalid or the command line, it will be prompted for.
All of these values are checked to ensure that they are valid. Help may be obtained by pushed ? at any prompt.
This creates a new image using base.tgz and diskless-image-*.deb in the current directory. If these files cannot be found, then the process will abort. Similarly, if more then one match for diskless-image*.deb can be found the process will abort.
Some tasks are left incomplete:
Install kernel modules. It is easier if you can leave this until later, but if you must do it now:
dpkg --root imagedir --install kernel-image-*.deb
Warning |
Do not tell the installation script to install lilo, as it may replace your lilo setup on the NFS server. |
To complete these tasks, export the image directory as read-write. A sample entry can be found in /etc/diskless-image/exports on the NFS-root image. Replace IP address with the IP address of the master system.
Boot from it. If all goes well, you shouldn't see any fatal error messages when the image boots, and you should get to the login prompt. Currently I get errors that /etc/modules doesn't exist and the pcmcia module could not be found. These can be safely ignored (unless you really do want pcmcia support).
The following steps should be conducted on the newly booted system:
Log in as root. No password is required.
You may be asked to configure the keyboard. For me, this produced the error that /etc/kbd/default.map could not be found. If this occurs, push any key to continue.
Be careful in adding a standard user account and/or shadow passwords if you use NIS. These options may not be desirable.
I recommend:
dpkg --purge lilo ( prevent potentially dangerous mistakes) dpkg --purge pcmcia-cs (unless you have pcmcia modules) dpkg --install kernel-image-*.deb (if not already done) dpkg --install ssmtpd_*.deb dpkg --install anacron_*.deb
If you installed the kernel-image modules, then please make sure that the dependency information is up-to-date. This might occur automatically, I am not yet sure.
Suggested X configuration. Put next line inside /etc/inittab:
7:23:respawn:/etc/init.d/X vt7 -query snoopy
This will automatically restart X on starup and when it is exited, and contact the xdm server on snoopy (change to more appropriate name). It will not start X if a valid XF86Config file doesn't exist. All output will go to /var/log/X.log.
Consider changing the export entry to read-only so that unauthorized users cannot change the setup. You don't normally want to boot up in master mode anyway, unless installing/removing packages.
If image dir already exists, diskless-newimage will allow you to change the settings without having to boot from the image and execute configure-diskless-image manually.
Note: If you want to change any config files under /etc, check to ensure they aren't mentioned in /etc/diskless-image/config.sh . config.sh is executed every time the package is is reconfigured (with dpkg-reconfigure) or reinstalled, and will re-create the listed configuration files. Updating the rules in /etc/diskless-image/config.sh is prefered other updating the individual files. This file may be replaced in the future with an alternative mechanism, depending on what feed back I get.