Joined: Mar. 2005
||Posted: July 07 2008,08:29
I have started using the "knoppix_dir=" (along with toram) cheatcode, and have come up with an error. It always fails after copying toram, with a "Chaging to /cdrom2 failed." error. I have tracked it down to the minirt64.gz -> minirt -> linuxrc function "remount_knoppix". It always fails the test for the file "$Target/$knoppix_dir/$knoppix_name". That can be traced to the calling function "copy_to". The rsync command used within copy_to FAILS to copy the containing directory holding the knoppix file, the "knoppix_dir" to the target directory.
Rsync just copies the containing files (knoppix, linux24, minirt24.gz) to /cdrom2/, instead of to /cdrom2/knoppix_dir/.
The backup cp command that gets run if rsync is missing does copy the knoppix_dir folder though.
(Also, from trying to run the commands, the first rsync command copies everything over to the target folder, and then the second rsync doesn't copy anything at all, but still exits with 0, never triggering the "Copying DSL image failed" error.)
The quickest fix is to simply remove lines 543-551 and 553 (Remove rsync, and it's if/else, leaving just the cp command).
I tested this on 4.4.2's minirt24.gz, but the same problem exists on 3.4.11. (remove lines 458~466 and 468).
My boot environment:
|Code Sample |
Boot options of note for each distro:
|Code Sample |
append ~snip~ toram frugal initrd=/dsl3/minirt24.gz knoppix_dir=dsl3/
append ~snip~ toram frugal initrd=/dsl4/minirt24.gz knoppix_dir=dsl4/ fromusb
append ~snip~ initrd=/dslcore/dslcore.gz vga=792
Dslcore gave me no problems at all (Except as mentioned in the alpha thread, natch :P )
As an added bonus from the fix, you also get a copy of linux24 and minirt24.gz copied to /cdrom along with knoppix, as it should.
(Oh, and is having "frugal" when you have "toram" redundant?)