Thank you
beny.
I had actually found the live-usb in APorteus and had copied the files to my hdd to work on later but never got to it. Your 3.2.2 suggestion was helpful getting me to follow through on creating a module since I still had a 3.2.2 ISO.
I tried the 3.2.2 ISO, found all the live-usb related files (
using a trick I learned from Rava) and created a script to make a module of them.
Code: Select all
#!/bin/bash
# Save Porteus 3.2.1 live-usb as a mod file
# Doesn't work in 3.2.2 :: https://forum.porteus.org/viewtopic.php?t=6548
MOD=live-usb
VRSN="3.2.1"
TO=/mnt/sda6/porteus5.0/Optional
DIR () {
ls -lght --time-style long-iso $1 | awk '{print $5,$6,$4,$7}'
}
if [ `whoami` != "root" ]; then
echo "Enter root's password"
su -c "sh $0 $1"
exit
fi
if [ -d /tmp/mod/ ]; then
rm -rf /tmp/mod
fi
mkdir -p /tmp/mod
# copy mod files
# root@porteus:/usr/share# find . live-usb | grep "live-usb"
cp -a --parents /usr/share/pixmaps/live-usb.png /tmp/mod/
cp -a --parents /usr/share/pixmaps/porteus/usbstick-128.png /tmp/mod/
cp -a --parents /usr/share/applications/live-usb.desktop /tmp/mod/
cp -a --parents /usr/share/live-usb/* /tmp/mod/
cp -a --parents /home/guest/mkmodliveusb.sh /tmp/mod/ # :-)
echo
du -ch /tmp/mod/
echo "Changed files copied. Press Enter to create module, Ctrl+C to exit."
read
du -h /tmp/mod/
echo
dir2xzm /tmp/mod /tmp/$MOD.xzm && rm -rf /tmp/mod
echo
ls -sh /tmp/*.xzm
#read
echo
echo "Press Enter to copy /tmp/$MOD.xzm to $TO, Ctrl+C to exit."
DIR /tmp/$MOD.xzm
if [ -f /$TO/$MOD.xzm ]; then DIR /$TO/$MOD.xzm; fi
read
cp /tmp/$MOD.xzm /$TO
echo Finished!
read
exit
Executing the script lead me to a 3.2.2 problem,
Invalid argument, so I had to find a 3.2.1 ISO and hope it had create live-usb also.
The 3.2.1 ISO I downloaded and used did indeed have the live-usb app and my script ran. I then booted 5.0rc3 and tried the liveusb.xzm module which resulted in this:
Code: Select all
guest@porteus:~$ live-usb
bash: live-usb: command not found
guest@porteus:~$ su
Password:
root@porteus:/home/guest# live-usb
bash: live-usb: command not found
root@porteus:/home/guest# /usr/share/live-usb/bin/live-usb
root@porteus:/home/guest#
No error msgs and no input window.
BTW Porteus 5.0 and I believe 3.2 also has the Menu>Admin>Porteus Installer app which writes to USB drives.