Bug#700902: boot: luks persistence fails because load_keymap outputs a message about "Loading"
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}" \
"${@}"
>From 7fe6f937396395641e9b178bb512f66656ba6bc5 Mon Sep 17 00:00:00 2001
From: stack <stack@inventati.org>
Date: Tue, 19 Feb 2013 00:59:21 +0100
Subject: [PATCH] open_luks_device ret value not screwed by loadkeys
loadkeys in load_keymap was outputting a message about Loading
/etc/boottime.kmap.gz and that was taken into account as return value
for open_luks_device(). loadkeys is now called with -q (quiet) switch.
This was a boot message example before the fix, notice the "mounting Loading":
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.
---
scripts/boot/9990-misc-helpers.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh
index 2509c90..0515f9b 100755
--- a/scripts/boot/9990-misc-helpers.sh
+++ b/scripts/boot/9990-misc-helpers.sh
@@ -617,7 +617,7 @@ load_keymap ()
# Load custom keymap
if [ -x /bin/loadkeys -a -r /etc/boottime.kmap.gz ]
then
- loadkeys /etc/boottime.kmap.gz
+ loadkeys -q /etc/boottime.kmap.gz
fi
}
--
1.7.10.4
Reply to: