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

Bug#700902: boot: luks persistence fails because load_keymap outputs a message about "Loading"



On 19/02/13 00:47, stack wrote:
Package: live-boot
Version: 3.0.1-1
Severity: normal
Tags: patch

Hello,
this bug is about live-boot and luks persistence, I've tried to build
minimal live builds with suggestions from people on the channel and they
worked fine (sid builds), but whenever I permitted apt to
pull recommends packages I was unable to have persistence working.
I also found similar errors on the mailing list but no fix: 1

The relevant boot message is this one:

  ' Begin: Running /scripts/live-realpremount ... done.
   Begin: Mounting "/live/medium/live/filesystem.squashfs" on "//filesystem.squashfs" via "/dev/loop0" ... done.
   Enter passphrase for /dev/sdb2:
   mount: mounting Loading on /live/persistence/Loading failed: No such device
   sort: /tmp/custom_mounts.list: No such file or directory
   /init: line 1: can't open /tmp/custom_mounts.list: no such file
   rm: can't remove '/tmp/custom_mounts.list': No such file or directory
   umount: can't umount /live/overlay: Device or resource busy
   done.
   Begin: Configuring fstab ... done.
   Begin: Preconfiguring networking ... done.

notice the "mounting Loading", message.
I supposed that something was screwing the return value of open_luks_device
so I wrote a possible patch, that in my case resolves this issue.

thanks
best regards


here it is the auto/config used (in package-lists/desktop.list.chroot I also have
tasks-xfce-desktop)

    mirror="http://ftp.debian.org/debian/";
    security_mirror="http://ftp.debian.org/debian-security/";
    lb config noauto \
        -a i386 \
        -b hdd \
        -d sid \
        --linux-flavours 686-pae \
        --mode debian \
        --debian-installer live \
        --debian-installer-gui true \
        --bootappend-live "\
        boot=live \
        config \
        persistent=cryptsetup \
        persistence-encryption=luks \
        username=stack \
        hostname=acqua \
        persistence \
        live-config.locales=it_IT live-config.timezone=Europe/Rome live-config.keyboard-layouts=it \
        " \
        --archive-areas "main contrib non-free" \
        --apt-recommends true \
        --linux-packages linux-image-3.7-trunk \
        --mirror-bootstrap "${mirror}" \
        --mirror-binary "${mirror}" \
        --mirror-chroot-security "${security_mirror}" \
        --mirror-binary-security "${security_mirror}" \
       "${@}"


Custom Wheezy live image on usb here, using live-boot 3.0.11~b-1, with syslinux setup.

I have LUKS second partition containing a ext2 filesystem labelled "persistence". That contains a file "persistence.conf" with text "/home union,sources=.

I rebuilt the initrd with patched 9990-misc-helpers.sh

It now works!

Except .. if i use "debug" .. then everything hangs at:

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

More info? Can't save a debug log from a total freezeup situation.


Reply to: