-
Suggestion for Customizations w/o Remastering
I just started looking at the init ramdisk, w/ the intention of modifying it. While my research is incomplete, it occurs to me that a modification before the next release may be desirable and feasible, to minimize the need for certain remastering operations.
My proposal is to create a new directory tree in the ramdisk image, /custom, the contents of which would parallel the system's boot script hierarchy (/etc/init.d). The idea is that instead of remastering simply to change some part of the /etc/init.d hierarchy or to accept the scripts as they are, one could make changes to the custom sub-dir and as part of the linuxrc initialization the updated/experimental scripts would be copied into the union for subsequent use by Knoppix.
There are several potential uses, but I can foresee this mechanism being most useful to start the various (Samba/terminal server/web server/etc) servers automatically, in the same way one would configure a conventional hdrive Linux installation. But custom initialization tasks in general could be addressed in this manner w/o requiring the base system to be remastered. The proposed alterations would be limited to linuxrc and the addition of the /custom/etc/init.d sub-dir (and contents) to the init ramdisk.
I haven't had an opportunity to verify the concept, as I'm not a proficient shell script programmer, but conceptually the idea seems that it would be quite simple to validate by someone who is more capable. The only foreseeable problem at this point, is whether or not the union's structure is available for this kind of modification (ie. does the compressed filesystem get mapped into the union after control has past from linuxrc.)
Actually, updated/modified system binaries could be accommodated as well, with the sole limit being the size of the ramdisk itself.
I hope to return to this exercise in the next week and report back w/ my findings. I also hope that this idea makes it beyond the forum, for consideration by Knopper, in order to be considered for inclusion in the next revision of Knoppix. Frankly, I'm not sure if this idea has been discussed already, but it seems to be simple to implement and validate, by someone w/ more familiarity w/ the init scripts and shell scripting in general.
Regards
-
Knoppix already has a mechanism to do basically what you would like to do. I'm actually a big fan of customizing Knoppix without remastering and with AuFS and the persistent disk image you can do a lot of changes with Knoppix without a full remaster. I covered these techniques a bit in the first Knoppix Hacks but that was before AuFS/UnionFS. In the second edition though I really expanded because you could just do so much without having to open up that KNOPPIX file and tweak it.
At a basic level you can achieve what you want by tarring up the files that you want to add, including any packages, etc. into a tarball that you place in the KNOPPIX/ directory on the disc (probably DVD since the CD is pretty full). Then just create a knoppix.sh file in that directory that extracts the tarball and runs any other programs (like installing any .debs, etc.) that you want. The knoppix.sh script will be run at boot.
Or you could just make the changes you want to make and then add them as part of a persistent disk image, and then add the persistent disk image to the DVD itself if you don't want to carry it around on a USB disk.
Just a few ideas. I've actually been able to do a lot with this "remaster without remastering" method including setting up a custom Knoppix CD as a local webcam server.
Similar Threads
-
By hunkychop in forum Ideas
Replies: 0
Last Post: 05-19-2007, 05:35 AM
-
By pau1knopp in forum Customising & Remastering
Replies: 1
Last Post: 01-08-2006, 05:35 PM
-
Replies: 0
Last Post: 03-14-2005, 09:30 PM
-
By pj in forum Knoppix DVD
Replies: 1
Last Post: 09-12-2003, 08:18 PM
-
Replies: 0
Last Post: 03-14-2003, 12:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage 1982 Apple Lisa 512KB Memory Board (820-4010-A) picture](/store/img/g/k5gAAOSw7VRmcfZF/s-l225/Vintage-1982-Apple-Lisa-512KB-Memory-Board-820-401.jpg)
Vintage 1982 Apple Lisa 512KB Memory Board (820-4010-A)
$125.00
![Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets. picture](/store/img/g/498AAOSwJTdl1MqH/s-l225/Vintage-Dot-Matrix-Printer-Contin-Feed-Paper-8-5-x.jpg)
Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.
$4.00
![Lot of Old Vintage Computer PC SIMM DIMM RAM picture](/store/img/g/kiMAAOSw6FxmdFmF/s-l225/Lot-of-Old-Vintage-Computer-PC-SIMM-DIMM-RAM.jpg)
Lot of Old Vintage Computer PC SIMM DIMM RAM
$25.00
![Lot of Old Vintage Computer PC SIMM DIMM RAM picture](/store/img/g/VrwAAOSweI1mdEzs/s-l225/Lot-of-Old-Vintage-Computer-PC-SIMM-DIMM-RAM.jpg)
Lot of Old Vintage Computer PC SIMM DIMM RAM
$29.00
![NOS Vintage IBM PC Convertible Computer Game Control Adapter 1501300 picture](/store/img/g/MPIAAOSwrgRmbybv/s-l225/NOS-Vintage-IBM-PC-Convertible-Computer-Game-Contr.jpg)
NOS Vintage IBM PC Convertible Computer Game Control Adapter 1501300
$15.00
![BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers picture](/store/img/g/-Q4AAOSwI3hmPnUb/s-l225/BlueSCSI-V2-WiFi-Narrow-DB25-Modern-Storage-for-Vi.jpg)
BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers
$51.50
![BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture](/store/img/g/GXUAAOSwWZRmPnHK/s-l225/BlueSCSI-V2-WiFi-Desktop-Modern-Storage-for-Vintag.jpg)
BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model
$53.50
![Vintage Classic Apple Macintosh System Boot Install Disk Floppy/CD *Pick Version picture](/store/img/g/dBIAAOSwytZgHibX/s-l225/Vintage-Classic-Apple-Macintosh-System-Boot-Instal.jpg)
Vintage Classic Apple Macintosh System Boot Install Disk Floppy/CD *Pick Version
$10.39
![Epson MBM-2095-E Vintage Monochrome Monitor (Does not Turn On) picture](/store/img/g/RWQAAOSwCFNlt-Ff/s-l225/Epson-MBM-2095-E-Vintage-Monochrome-Monitor-Does-n.jpg)
Epson MBM-2095-E Vintage Monochrome Monitor (Does not Turn On)
$105.26
![Vintage DEC/CLEARPOINT INC. QED1 4MB Memory PDP picture](/store/img/g/z44AAOSwECRmdC5e/s-l225/Vintage-DEC-CLEARPOINT-INC-QED1-4MB-Memory-PDP.jpg)
Vintage DEC/CLEARPOINT INC. QED1 4MB Memory PDP
$149.99