^ It works in 3.2rc5 too.
Code: Select all
guest@porteus:~$ ./modules.sh
glibtop(c=2495): [DEBUG] open.c:53 glibtop_open_l(): SIZEOF: 40 - 65648 - 248 - 65624 - 224 - 65624
glibtop(c=2495): [DEBUG] open.c:163 glibtop_open_l(): Calling sysdeps open function.
glibtop(c=2495): [DEBUG] init.c:229 glibtop_init_s(): init_s with features=0x7ffffff and flags=0
find: `/mnt/isoloop': No such file or directory
grep: /tmp/2508_port_modules: No such file or directory
find: `/mnt/isoloop': No such file or directory
Quiet mode: off
grep: /var/log/packages/pepperflash-23.0.0.162-x86_64-1: No such file or directory
Updating shared library links: /sbin/ldconfig
find: `/mnt/isoloop': No such file or directory
grep: /tmp/2508_port_modules: No such file or directory
ENTRIES="14
"
ENTRY=""
EXIT="0"
You might want to tweak the ENTRIES= quote marks.
As for root access in 3.2rc5
Code: Select all
guest@porteus:~$ which losetup
which: no losetup in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin)
guest@porteus:~$ ls -l /sbin | grep losetup
-rwxr-xr-x 1 root root 70272 Dec 11 2015 losetup*
guest@porteus:~$ losetup --help
bash: losetup: command not found
guest@porteus:~$ /sbin/losetup --help
Usage:
losetup [options] [<loopdev>]
losetup [options] -f | <loopdev> <file>
Set up and control loop devices.
Options:
-a, --all list all used devices
-d, --detach <loopdev>... detach one or more devices
-D, --detach-all detach all used devices
-f, --find find first unused device
-c, --set-capacity <loopdev> resize the device
-j, --associated <file> list all devices associated with <file>
-o, --offset <num> start at offset <num> into file
--sizelimit <num> device is limited to <num> bytes of the file
-P, --partscan create a partitioned loop device
-r, --read-only set up a read-only loop device
--show print device name after setup (with -f)
-v, --verbose verbose mode
-l, --list list info about all or specified (default)
-O, --output <cols> specify columns to output for --list
-n, --noheadings don't print headings for --list output
--raw use raw --list output format
-J, --json use JSON --list output format
-h, --help display this help and exit
-V, --version output version information and exit
Available --list columns:
NAME loop device name
AUTOCLEAR autoclear flag set
BACK-FILE device backing file
BACK-INO backing file inode number
BACK-MAJ:MIN backing file major:minor device number
MAJ:MIN loop device major:minor number
OFFSET offset from the beginning
PARTSCAN partscan flag set
RO read-only device
SIZELIMIT size limit of the file in bytes
For more details see losetup(8).
guest@porteus:~$
The which command isn't looking in the /sbin directory probably because it isn't in the default path. But losetup is certainly executable in 3.2rc5 as guest if it's path is specified.
jssouza wrote:You should consider including support for modules added via the extramod= cheatcode
Good point. I have never used it. May not be straightforward, since the extramod=path in your /proc/cmdline does not look like an absolute path. I will see.
If a path doesn't specify a mounted device it defaults to the booted device. So for extramods= paths lacking the device you may need to manually add it to the path. This should do it for you.
Code: Select all
# http://forum.porteus.org/viewtopic.php?f=53&t=3801&start=30#p28472
BOOTDEV=`grep -A1 "Booting" /var/log/porteus-livedbg|tail -n1|sed 's^//^/^g'`
if [ "$BOOTDEV" == "/mnt/isoloop" ]; then
BOOTDEV=`grep -A1 "ISO=" /var/log/porteus-livedbg`
BOOTDEV=${BOOTDEV:4:9}
fi
TYPE=`grep "/dev/${BOOTDEV:5}" /var/log/porteus-livedbg`