New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
- White ninja
- Posts: 10
- Joined: 14 Jan 2011, 11:13
- Location: belgium
when using the from_iso
cheatcode, i.e. booting from a ISO file on usb,
it's impossible to put files inside the ISO for copying onto the root filesystem.
I would like to use the following layout on my removable media:
Code: Select all
would it be possible to support this in the default linuxrc ?
I think this small patch implements this, in a compatible way with the existing code.
Code: Select all
--- linuxrc-orig 2011-03-16 11:24:30.000000000 +0100
+++ linuxrc 2011-03-16 11:25:40.000000000 +0100
@@ -309,8 +309,18 @@
-echo $i"copying content of rootcopy directory"
-cp -af $PTH/rootcopy/* /union 2>/dev/null
+if [ -n "$ISO" -a -n "$ISODEV" -a -n "$ISOPTH" ]; then
+ ISODIR=`echo $ISOPTH | sed 's:/[^/]*$::'`
+ if [ -d /opt/$ISODEV/$ISODIR/rootcopy ]; then
+if [ -d $ROOT_PTH ]; then
+ echo $i"copying content of rootcopy directory"
+ cp -af $ROOT_PTH/* /union 2>/dev/null
mount -n -o rbind /mnt/$DATA/boot /union/boot 2>/dev/null
- Site Admin
- Posts: 5344
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
thanks for sharing your code (i see that you have read linuxrc carefully - well done!), but i find it too static as /rootcopy must be placed in same folder as the porteus.iso
what about more flexible solution: 'rootcopy=' cheatcode?
it could be placed on another device, folder, etc like:
with full path: 'rootcopy=/dev/sda3/porteus/rootcopy'
with relative path: 'rootcopy=/porteus/rootcopy'
with completely different name: 'rootcopy=/mylinux_stuff/porteus-v.1.0-rootcopy'
if no 'rootcopy' cheatcode is specified then standard $PTH/rootcopy/ would be used.
i dont think many people will use it but implementing it shouldn't be too hard for me
BTW: linuxrc development should be discussed in this thread:
Please add [Solved] to your thread title if the solution was found.