tree symlink

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.
pterid
Contributor
Contributor
Posts: 110
Joined: 01 Feb 2025, 20:13
Distribution: Porteus 5.01 Xfce on ext4 USB

tree symlink

Post#1 by pterid » 03 Jan 2026, 21:57

Breaking a record for the tiniest request...

In 001-core.xzm there is already a symlink to give access to the vi applet of the Busybox that is contained in boot/initrd.xz:

Code: Select all

/usr/bin/vi -> /mnt/live/bin/busybox
Out of curiosity I checked if there were any functions in that busybox that did not already have an equivalent tool available on the command line (even to the superuser):

Code: Select all

root@porteus:/mnt/live/bin# ./busybox --list | while read prog; do x="$(which "$prog" 2>/dev/null)" ; [ "$?" -ne '0' ] && echo "NO $prog" || realpath "$x"; done | grep '^NO ' | sed 's/^NO //'
ash
bootchartd
cttyhack
readahead
seedrng
tree
udhcpc
Most of these are pretty niche tools, but I would quite like access to tree without downloading the Salix package... please could we add a symlink into 001-core.xzm:

Code: Select all

/usr/bin/tree -> /mnt/live/bin/busybox
Thanks! :D

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4582
Joined: 20 Mar 2012, 03:42
Distribution: v5.1-alpha*-64bit
Location: australia
Contact:

tree symlink

Post#2 by ncmprhnsbl » 04 Jan 2026, 02:14

ha, nice find :)
not sure why tree is included in our busybox build in the first place.. could be handy in a emergency shell i suppose.
but sure, i don't see why not, will include in the next update/release.
be aware though, that busybox's tree is very basic and only takes a path argument, where the full version has a lot of options and granular control:
of course, if someone wants the full version and makes a module(or installs to changes) it'll overwrite the symlink in the same way if someone wants to use the full version of vi.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

pterid
Contributor
Contributor
Posts: 110
Joined: 01 Feb 2025, 20:13
Distribution: Porteus 5.01 Xfce on ext4 USB

tree symlink

Post#3 by pterid » 04 Jan 2026, 14:55

Thanks, and yes exactly! I know the busybox tree is very basic (the lack of the -d flag is particularly annoying), but the symlink can be overwritten by the full tree program if someone installs it as a module, and if the busybox one is in there, why not use it?

Post Reply