Hi there
I played with the remaster.sh script (/usr/local/bin/remaster.sh) just to learn how it works.
I added zenity dialogs to select the iso file and the path to the remaster directory, and some info dialogs
Removed the --from-hard-disk option (tagged experimenta) I don't use it
A few small changes to the code, the promp is modified when you are in the chrooted environment, leafpad is called to modify the version file...
I hope I did not break the process!
Note that you have to start the script from a terminal, the terminal in which you will be chrooted.
And the output of mksquashfs and mkisofs are also in this terminal.
the script can be run in the old style command line only when started with a -n --no-gui option (not really tested the option)
I tried to start a X session from the chroot, using xnest. I can start a icewm session as root (no user in the liveCD-chrooted env), some appications start nicely (rox-term), others (iceape) crash the x-nested-session (you have still the terminal)
topic title: A zenity-driven version of remaster.sh script
4 posts
• Page 1 of 1
-
Posts: 200
- Joined: 15 Oct 2008
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#2
Hi there lagopus, great to see you.
I have tested this and it works really well. I'll look at it more and see how we can add some extras like removing files etc.
It would also be great if we could get the remaster an existing hd install to work as well.
Great stuff.
I have tested this and it works really well. I'll look at it more and see how we can add some extras like removing files etc.
It would also be great if we could get the remaster an existing hd install to work as well.
Great stuff.
-
Posts: 1,062
- Joined: 20 Jan 2010
#3
Hey lagopus,
I have tried this modified script as well. I like it, but I have found that it leaves (my chroot) in front of terminal prompt after building the iso. How do I change it back before building the iso so it is back to normal in the built iso?
I have tried this modified script as well. I like it, but I have found that it leaves (my chroot) in front of terminal prompt after building the iso. How do I change it back before building the iso so it is back to normal in the built iso?
-
Posts: 200
- Joined: 15 Oct 2008
#4
Hi Dave
The prompt is changed line 509
This creates the file /etc/debian_chroot in the new-squashfs file system with the content 'mychroot', added to the standard debian root prompt
The file does not exist in the original antiX iso; we can/should remove it before compressing the new squashfs file, at line 520, returning from the chroot call, or in cleanup_chroot_env
Thanks for having tried it
Yves
The prompt is changed line 509
Code: Select all
# Change the prompt for the chrooted env
# from root@antiX: to (mychroot)root@antiX
echo"mychroot" > $REM/new-squashfs/etc/debian_chroot
The file does not exist in the original antiX iso; we can/should remove it before compressing the new squashfs file, at line 520, returning from the chroot call, or in cleanup_chroot_env
Thanks for having tried it
Yves