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

Re: Wheezy fails to execute config scripts from //filesystem.squashfs/lib/live/config

Hi Андрій

Am 01.10.2012 10:47, schrieb Андрій Шинкарчук:
Hello debian-live and Daniel Baumann especially.

I'm working under wheezy-based netboot image with a live-* packages
from sid for my network.

After recent changes in live-config (after Septeber 27th) i can build
netboot image, but it fails to execute config scripts during boot
process and thus create live user and autologin to it.
Image built on 27th of september boots fine, user creation and
autologon is succesfull. Images built on 28th, 30th of September and
1st of October failed both to create users and autologin.
I can confirm similar issue when trying to build "normal" live images for sid and wheezy on sid host.
The live user is not created during the boot process.

I used the following version of live build packages:
# ---
live-boot 3.0~b5-1
live-boot-initramfs-tools 3.0~b5-1
live-build 3.0~a61-1
live-config 3.0.7-1
live-config-sysvinit 3.0.7-1
# ---

I had to add the content of removed "#include <minimal><standard><standard-x11>" lists to a new list in "config/package-lists".

Just for test and as a workaround I used the following lines in rc.local ot the boot image:
# ---
sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline | xargs -iX /usr/sbin/addgroup X || : sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline | xargs -iX /usr/sbin/useradd -g X -m -s "/bin/bash" -c "Debian live user" X || : sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline | xargs -iX echo "X ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/X || :

mv /home/user/.[a-z]* /home/`sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline`/ || : mv /home/user/* /home/`sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline`/ || :
rmdir /home/user

cat /root/.vimrc >> /home/`sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline`/.vimrc || : sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline | xargs -iX chown -R X.X /home/X || :

# Setting password to "live":
sed 's/^.*username=\([a-z0-0][a-z0-9]*\) .*$/\1/' /proc/cmdline | xargs -iA sed -i '/^A:/s|^\(A\):\(.*\):\([0-9][0-9]*:.:[0-9][0-9]*:[0-9]:::$\)|\1:$6$/6.LjiDG$ZwpBsG67I9cRwbfjSwCf6afQ0MwM8Bm1tHgMJLOnTkp3ZoVDCI8/OEwB6yXb/XhF2TG1YbN6kZ.wyN65iB9Ry0:\3|' /etc/shadow || :

# ---

I see that there is a new "a62", however I can test it first today evening or tomorror.

Additional info:
filesystem.squashfs image mounts succesfully into
${croot}/${imagename} that is //filesystem.squashfs directory (yes,
leading double slash exactly, i see `Begin: Mounting
"/live/image/live/filesystem.squashfs" on "//filesystem.squashfs" via
"/dev/loop0" ... done` during boot process)
filesystem.squashfs image also contains /lib/live/config/????-*
scripts (including user-setup and so on) and /lib/live/config.sh with
presets (i mounted filesystem.squashfs and checked)

live-config package version 3.0.7-1 in 30th and 1st images versus
3.0.6-1 in fine booting 27th image.

I made a conclusion that config scripts were not executed because of i
see `localhost.localdomain` tty* prompts instead of autologinned
`user` at `debian` host and besides it i can't see output of locales,
user-setup and other scripts during boot time while 27th image have

I have also checked recent
http://live.debian.net/cdimage/release/7.0~a1/amd64/netboot/ images
(kde). KDE boots, but i receive multicolor-dotted display with a
square instead of cursor on both tty7 and on tty1-6 (AMD E350 APU
graphics - drivers not included?) and kdm's login prompt at
`localhost.localdomain` for test KVM guest. So issue is 100%
reproduced both with debian-live server builds and my own builds.

It looks like for me that some errors were made while moving from
/live to /lib/live or some other. I can give any additional data
and/or information or 27th image if you request it.


That is my auto/config if necessary

lb config noauto --clean --mode debian \
-b net \
--net-root-path "/srv/debian-live/" \
--net-root-server "" \
--apt-recommends false --apt-indices false \
--distribution wheezy \
--archive-areas "main contrib non-free" \
--mirror-bootstrap http://ftp.ua.debian.org/debian/ \
--mirror-chroot-security http://ftp.ua.debian.org/debian-security/ \
--mirror-chroot-backports http://ftp.ua.debian.org/debian-backports/ \
--mirror-binary http://ftp.ua.debian.org/debian/ \
--mirror-binary-security http://ftp.ua.debian.org/debian-security/ \
--bootappend-live "locales=uk_UA.UTF-8,en_US.UTF-8 username=student
--ignore-system-defaults "${@}"

config/packages-list contains live.list.chroot with `live-manual-all
live-tools user-setup sudo live-config live-config-doc live-boot
live-boot-initramfs-tools live-boot-doc uuid-runtime` and
config/chroot_apt contains preferences with pin-priority for this
packages equal 600 from sid repo. Both live.list.binary and
live.list.chroot contains sid repo entry

regads, Mark



Reply to: