-
Senior Member
registered user
My post #5 has a syntax error in the init of minirt.gz.
line 744 "fi" unexpected (expected "then")
What a grand way to demonstrate a syntax error.
Here's an example the magic required to edit the init in minirt.gz
The really crucial lines are spaced apart from the others.
cd /
sudo su
mkdir fresh_tmp # because you need a clean workplace
cp /mnt-system/boot/syslinux/minirt.gz /fresh_tmp
cd fresh_tmp
gunzip minirt.gz
cpio -imvd --no-absolute-filenames -I minirt
sudo leafpad init
( here we change init and save )
rm minirt # you don't want this in the gzip process
find . | cpio --quiet -o -H newc | gzip -9 > minirt.gz
chmod +x minirt.gz # because the original was executable
cd /mnt-system/boot/syslinux
mv minirt.gz minirt.gz.orig # this may come in handy
cd /fresh_tmp
mv minirt.gz /mnt-system/boot/syslinux
( here we should probably erase our tracks in fresh_tmp
before it becomes a permanent fixture )
Be aware, any syntax error in init will bring your boot process
to a screeching halt. As I have just demonstrated.
It may be noted that the technique of post #1 comes in handy in
cases like this.
I will now belatedly study compound if/then syntax. More later.
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
AMD Ryzen 7 5800X Processor (4.7GHz, 8 Cores, Socket AM4)
$150.00
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$549.99
Intel Core i5-12600K 2.80GHz 10-Core Processor LGA 1700 BX8071512600K
$164.99
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$306.99
AMD Ryzen 9 7900x Processor (5.6 GHz, 12 Cores)
$225.00
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads - 5.60 GHz Max Boo
$349.00
AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$79.00
Intel Core i7-4790 SR1QF 3.60GHz CPU Processor
$36.00
Intel Xeon E-2276G SRF7M LGA 1151 | 3.8GHz, 6 Cores | Server Processor
$278.99
Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor
$262.49