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

Re: Live user includes get another uid:gid on the live image than the original one in config/chroot_local-includes



On 24.09.2010 20:41, Daniel Baumann wrote:
do not hijack threads by hitting 'reply' instead of 'new' when you start
a new topic. otherwise, your message gets hidden in another thread and
likely be overseen.
thanks .. a good hint

---lb_chroot_hacks---
[...]
case "${LB_INITRAMFS}" in
»·······casper)
»·······»·······ID="999"
»·······»·······;;

»·······live-initramfs|live-boot)
»·······»·······ID="1000"
»·······»·······;;
esac

if [ -d chroot/home/${LB_USERNAME} ]
then
»·······chown -R --quiet ${ID}:${ID} chroot/home/${LB_USERNAME}
fi
[...]
---snap----

root@t60p:/home/ironm/lds6-amd64/chroot/home/ironm# ls -al | grep icedove
drwx------ 3 ironm ironm 4096 24. Sep 19:23 .icedove
root@t60p:/home/ironm/lds6-amd64/chroot/home/ironm# grep ironm /etc/passwd
ironm:x:1000:1000:ironm,,,:/home/ironm:/bin/bash
so? why are you thinking it's a bug? it fixed the stuff correctly for you.

this line above fix the content of "chroot/home/${LB_USERNAME}"
with the UID (1000) of the user on the build host but not with the live user ID (999) what one would expect.

--
IT-Infrastrukturen.ORG

ms@it-infrastrukturen.org
http://www.it-infrastrukturen.org

+++ Free infrastructure software for all. +++


Reply to: