[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Patch] Fixes and features about live-initramfs



Steven Shiau wrote:
> The reason to do so is actually for the PATH in scripts/live, since 
> there is:
> export 
> PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:
> /bin:/sbin"

it appears that there is reason to remove /root/* from the path here.

> If some exe file in /root/usr/{bin,sbin} is run, and it's not static 
> linking, we need those *.so in /root/lib or /root/usr/lib. I found this 
> problem when I used live-helper and live-initramfs to create a Ubuntu 
> 8.10 live CD.

i personally think that if one is running a binary from /root/, one
should run it with a chroot call, also to ensure that the binary does
have the 'correct' environment.

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann at panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/



Reply to: