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

Bug#700902: marked as done (boot: luks persistence fails because load_keymap outputs a message about "Loading")



Your message dated Tue, 19 Feb 2013 05:02:32 +0000
with message-id <E1U7fLc-0001ZT-Ty@franck.debian.org>
and subject line Bug#700902: fixed in live-boot 4.0~a7-1
has caused the Debian Bug report #700902,
regarding boot: luks persistence fails because load_keymap outputs a message about "Loading"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
700902: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700902
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Source: live-boot
Source-Version: 4.0~a7-1

We believe that the bug you reported is fixed in the latest version of
live-boot, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 700902@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <daniel@debian.org> (supplier of updated live-boot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 19 Feb 2013 05:49:37 +0100
Source: live-boot
Binary: live-boot live-boot-doc live-boot-initramfs-tools
Architecture: source all
Version: 4.0~a7-1
Distribution: experimental
Urgency: low
Maintainer: Debian Live Project <debian-live@lists.debian.org>
Changed-By: Daniel Baumann <daniel@debian.org>
Description: 
 live-boot  - Live System Boot Scripts
 live-boot-doc - Live System Boot Scripts (documentation)
 live-boot-initramfs-tools - Live System Boot Scripts (initramfs-tools backend)
Closes: 700902
Changes: 
 live-boot (4.0~a7-1) experimental; urgency=low
 .
   * Silencing unmounting of potentially stray tmpfs on /live/overlay.
   * Making loadkeys call quiet in order to not mess-up persistence, thanks
     to stack <stack@inventati.org> (Closes: #700902).
Checksums-Sha1: 
 da993dd31bc2021529b03d5f69c2821c25252f0e 1376 live-boot_4.0~a7-1.dsc
 269095bd878c78f08c8616946f941c5c9112f073 58368 live-boot_4.0~a7.orig.tar.xz
 6b20006c80fa91c464690147f5add9967fb218e2 22560 live-boot_4.0~a7-1.debian.tar.xz
 2b850070a3c7ff2feade55bde81da8dfdf9686dc 48838 live-boot_4.0~a7-1_all.deb
 ab3093f45a2c741686fc2b6583b8c1d8422522b9 51734 live-boot-doc_4.0~a7-1_all.deb
 e137cf163eb51ec6ef521dd71e88ceb9f8d6fbff 26612 live-boot-initramfs-tools_4.0~a7-1_all.deb
Checksums-Sha256: 
 c1816f195509ad321f8b96f9e65af62c5fc4fb9bf4322b11bccf026a465cb41b 1376 live-boot_4.0~a7-1.dsc
 b992b74f9ad623efda271da4a890968bbbca34c93d32ed7cddafd174274b401e 58368 live-boot_4.0~a7.orig.tar.xz
 4a101485a2c94e157ee2feca1182a1cf64493859b67b16ba60a6ca51a5863ec3 22560 live-boot_4.0~a7-1.debian.tar.xz
 64da66169889598caf8c6e55941ef873b3a852b3a9dc7289632c7f83dd46ffd1 48838 live-boot_4.0~a7-1_all.deb
 438dd18a3b500109a2a3ef9c2cf320e67b8ea2b3ed41d716374dd0929d218077 51734 live-boot-doc_4.0~a7-1_all.deb
 73d499d6cb299d99ebeaacb95c7c067c98e79d2285b9d3c3e5d25c7a1d3bd0ed 26612 live-boot-initramfs-tools_4.0~a7-1_all.deb
Files: 
 457547b1d6a4aa561727aa0d4c4f8733 1376 misc optional live-boot_4.0~a7-1.dsc
 baba7f1d13a38d1cafd6463fc01b5e28 58368 misc optional live-boot_4.0~a7.orig.tar.xz
 0fc2d264ea76c3367f03d70a489b525d 22560 misc optional live-boot_4.0~a7-1.debian.tar.xz
 26a92c810a169190c69fd4b6fa05b04f 48838 misc optional live-boot_4.0~a7-1_all.deb
 177870f52ba0b8c868731307ef503807 51734 doc optional live-boot-doc_4.0~a7-1_all.deb
 30e50d62f3a7f5c761bc16e031933838 26612 misc optional live-boot-initramfs-tools_4.0~a7-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlEjBKEACgkQ+C5cwEsrK54QxwCfTHB/7WjwYtWzF6tW7sEKc2Yf
l6UAnj8u0b3VkUQZDvhRgH9YSyWNYnNb
=ReDb
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: