Building using nALFS along with package user approach. But it gives errors. Attached the relevent files and log extracts.
nALFS log
I:
I: Starting execution of marked elements...
I:
I: Changing root directory to "/mnt/lfs".
I: Setting environment variable HOME:
I: /root
I: Setting environment variable TERM:
I: linux
I: Setting environment variable PS1:
I: '\u:\w\$ '
I: Setting environment variable PATH:
I: /usr/lib/pkgusr:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
I: Unsetting environment variable CFLAGS.
I: Unsetting environment variable CXXFLAGS.
I: Executing system command in /:
I: add_package_user 2.6.11.2 linux-libc 10000 20000 linux-libc 10000 20000 || exit 1
-: Will create user linux-libc with uid: 10000
-: Group install has gid 9999
-: Creating group linux-libc with gid 10000
I: Changing to user "linux-libc".
E: User linux-libc doesn't exist.
I: Log file stored in:
I: /root/.nALFS/packages/libc-headers-2.6.11.2.xml
E: Execution failed (1).
I: Total time executing: 00:00:12
libc-linux.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
[
<!ENTITY % general_entities SYSTEM "../config/general.ent">
<!ENTITY % package_entities SYSTEM "../config/package.ent">
%general_entities;
%package_entities;
]>
<alfs>
<package name="libc-headers" version="&linux-libc-headers-version;">
<stage name="Adding the Package User">
<execute command="add_package_user &linux-libc-headers-version; linux-libc 10000 20000 linux-libc 10000 20000 || exit 1" />
</stage>
<stage name="Unpacking">
<stageinfo>
<user>linux-libc</user>
</stageinfo>
<unpack>
<digest>&linux-libc-headers-md5;</digest>
<archive>&packages_dir;/&linux-libc-headers-package;</archive>
<destination>&package_home;/linux-libc</destination>
</unpack>
</stage>
<stage name="Installing">
<stageinfo>
<user>linux-libc</user>
<base>&package_home;/linux-libc/&linux-libc-headers-directory;</base>
</stageinfo>
<!-- Other install instructions here -->
</stage>
<stage name="Cleanup">
<remove>&package_home;/linux-libc/&linux-libc-headers-directory;</remove>
</stage>
</package>
</alfs>
1 comment:
I have dug around a little and found this.
Bug 1058] New: changing user breaks when chrooted in script
Refer Use fake package users
Post a Comment