-
Remastering without remastering: editing and saving init
By making substantial use of KNOPPIX-DATA on a reiserfs formatted /dev/sda3 I have managed to customise KNOPPIX at boot pretty well as preferred.
However: one final (almost trivial) alteration eludes me.
I would like to tweak the boot init executable file which I think is the one that resides in minirt.gz.
Using a temporary ext2 filesystem as my vehicle for managing this:
1) copy minirt.gz to temp and de-compress minirt.gz using gunzip: this yields a file minirt
2) move to a dofferent subdirectory under temp and extract minirt here with the command cpio -idm < {pathto}/minirt
3) the init file is seen here: edit it - (I'm just tweaking the messages sent to screen at boot) - and save it
4) chmod a+x init and chmod a+w init, as originally found
5) wrap the while thing as a revised minirt to a different subdirectory under temp using find . | cpio -o > {newpathto}/minirt
6) compress the new minirt using gzip --recursive --rsyncable (not sure whether either switch is actiually required)
and finally
7) save the old minirt.gz as minirt.orig.gz in case of failure (see below!)
8 ) copy the new minirt.gz to replace the original.
Then reboot, hoping for success.
But actually get failure at boot with the error message:
"kernel panic - not syncing - unable to mount root fs on unknown-block(0,0)"
I feel I'm almost there at my ideal customised KNOPPIX, and without the hugely complex time-consuming and likely error-prone process of re-mastering.
Has anybody else tried this easier approach and successfully replaced minirt.gz with their own version?
Thank you for any insight or refined practice for 1-8 above .. ..
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

ASUS - PRIME B450M-A II (Socket AM4) AMD B450 microATX DDR4 Motherboard - Black
$69.99

GIGABYTE GA-AB350M-D3H Motherboard Socket AM4 DDR4 +AMD Ryzen 3 2200G I/O Shield
$79.99

ASUS Prime Z270-A Motherboard LGA 1151 Socket H4 Intel Z270 ATX HDMI DDR4
$69.97

Gigabyte B560 DS3H AC Intel LGA 1200 DDR4 ATX Motherboard
$69.95

Gigabyte B560 DS3H AC Intel B560 LGA 1200 ATX Desktop Motherboard A
$79.99

ASRock B660M Pro RS Intel B660 Series CPU (LGA1700) MicroATX Motherboard
$79.95

ASUS Q87M-E Desktop Motherboard Intel LGA1150 MicroATX Desktop Motherboard
$38.45

ASRock Z170M-ITX/AC LGA 1151 Intel Motherboard | Fast Ship, US Seller
$59.97

Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM
$79.00

ASRock A320M-HDV REV 4.02 AM4 microATX DDR4 Gaming Motherboard
$54.99