This is my live config: #!/bin/sh
set -e
lb config noauto \
--apt aptitude \
--apt-recommends true \
--apt-secure true \
--distribution jessie \
--binary-image hdd \
--archive-areas "main contrib non-free" \
--interactive shell \
--bootappend-live "\
boot=live \
config \
locales=pl_PL.UTF-8,en_US.UTF-8 \
keyboard-layouts=pl \
timezone=Europe/Warsaw \
persistence \
persistence-encryption=luks \
persistence-media=removable \
persistence-label=data \
nottyautologin \
noeject \
swapon \
hostname=livemor \
" \
--bootstrap debootstrap \
--mirror-bootstrap http://ftp.pl.debian.org/debian/ \
--mirror-binary http://ftp.pl.debian.org/debian/ \
--architecture amd64 \
--linux-flavours "amd64" \
--linux-packages "linux-image linux-headers" \
--bootloader syslinux \
--debian-installer-distribution daily \
"${@}"
I also have included the experimental repo in the build, so the
live-* packages could be downloaded and installed from the experimental
branch.
/live# tree config/
config/
├── apt
├── archives
│ ├── experimental.key.chroot
│ ├── experimental.list.chroot
│ └── experimental.pref.chroot
├── binary
├── bootstrap
├── build
├── chroot
├── common
├── debian-installer
├── hooks
│ ├── 0010-disable-kexec-tools.hook.chroot
-> /usr/share/live/build/hooks/0010-disable-kexec-tools.hook.chroot
│ ├── 0100-remove-adjtime-configuration.hook.chroot
-> /usr/share/live/build/hooks/0100-remove-adjtime-configuration.hook.chroot
│ ├── 0110-remove-backup-files.hook.chroot
-> /usr/share/live/build/hooks/0110-remove-backup-files.hook.chroot
│ ├── 0120-remove-dbus-machine-id.hook.chroot
-> /usr/share/live/build/hooks/0120-remove-dbus-machine-id.hook.chroot
│ ├── 0130-remove-gnome-icon-cache.hook.chroot
-> /usr/share/live/build/hooks/0130-remove-gnome-icon-cache.hook.chroot
│ ├── 0140-remove-log-files.hook.chroot
-> /usr/share/live/build/hooks/0140-remove-log-files.hook.chroot
│ ├── 0150-remove-mdadm-configuration.hook.chroot
-> /usr/share/live/build/hooks/0150-remove-mdadm-configuration.hook.chroot
│ ├── 0160-remove-openssh-server-host-keys.hook.chroot
-> /usr/share/live/build/hooks/0160-remove-openssh-server-host-keys.hook.chroot
│ ├── 0170-remove-python-py.hook.chroot
-> /usr/share/live/build/hooks/0170-remove-python-py.hook.chroot
│ ├── 0180-remove-systemd-machine-id.hook.chroot
-> /usr/share/live/build/hooks/0180-remove-systemd-machine-id.hook.chroot
│ ├── 0190-remove-temporary-files.hook.chroot
-> /usr/share/live/build/hooks/0190-remove-temporary-files.hook.chroot
│ ├── 0195-remove-ssl-cert-snakeoil.hook.chroot
-> /usr/share/live/build/hooks/0195-remove-ssl-cert-snakeoil.hook.chroot
│ ├── 0200-remove-udev-persistent-cd-rules.hook.chroot
-> /usr/share/live/build/hooks/0200-remove-udev-persistent-cd-rules.hook.chroot
│ ├── 0300-remove-udev-persistent-net-rules.hook.chroot
-> /usr/share/live/build/hooks/0300-remove-udev-persistent-net-rules.hook.chroot
│ ├── 0400-update-apt-file-cache.hook.chroot
-> /usr/share/live/build/hooks/0400-update-apt-file-cache.hook.chroot
│ ├── 0410-update-apt-xapian-index.hook.chroot
-> /usr/share/live/build/hooks/0410-update-apt-xapian-index.hook.chroot
│ ├── 0420-update-glx-alternative.hook.chroot
-> /usr/share/live/build/hooks/0420-update-glx-alternative.hook.chroot
│ ├── 0430-update-mlocate-database.hook.chroot
-> /usr/share/live/build/hooks/0430-update-mlocate-database.hook.chroot
│ └── 0440-update-nvidia-alternative.hook.chroot
-> /usr/share/live/build/hooks/0440-update-nvidia-alternative.hook.chroot
├── includes
├── includes.binary
├── includes.chroot
├── includes.debian-installer
├── includes.installer
├── package-lists
│ ├── appsy.list.chroot
│ └── desktop.list.chroot
├── packages
├── packages.binary
├── packages.chroot
│ └── whdd_2.0.1-1.01~eugenesan~saucy1_amd64.deb
├── preseed
├── rootfs
└── source
It builds usually (without --interactive shell), but I had to
customize some things in the chroot, and I came across some errors while
building the image. The first one is:
[2014-02-25 17:02:14] lb chroot-hooks
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_US.UTF-8",
LC_CTYPE = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_COLLATE = "C",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MESSAGES = "C",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
I have the following locales and variables set in my system:
$ locale -a
C
C.UTF-8
POSIX
en_US.utf8
pl_PL.utf8
$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.utf8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=C
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=C
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
The main thing is the interactive shell -- it simply can't enter the
chroot:
[2014-02-25 17:03:02] lb chroot_hacks
P: Begin executing hacks...
update-initramfs: Generating /boot/initrd.img-3.12-1-amd64
cryptsetup: WARNING: could not determine root device from /etc/fstab
/usr/sbin/iucode_tool: cpuid kernel driver unavailable, cannot scan
system processor signatures
[2014-02-25 17:03:23] lb chroot_interactive
P: Begin interactive build...
P: Pausing build: starting interactive shell...
^C
It hangs in that position. I run the task in background, so I even
forgot about it for a longer period of time, but when I checked it, I
saw only the "Pausing build: starting interactive shell.." message. Is
it a bug or something else?
signature.asc
Description: PGP signature
