Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #58908

Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Raphael Hertzog <hertzog@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter
Date Tue, 12 Sep 2017 09:40:02 +0200
Message-ID <uoNNT-6JC-7@gated-at.bofh.it> (permalink)
References <uhEcH-1bd-31@gated-at.bofh.it> <un24F-71m-3@gated-at.bofh.it> <un2Ho-7f3-1@gated-at.bofh.it> <un6rE-1na-13@gated-at.bofh.it> <un7nI-22L-7@gated-at.bofh.it> <uoCfM-7sQ-21@gated-at.bofh.it> <uoCSt-7IE-1@gated-at.bofh.it> <uoG9H-1yX-5@gated-at.bofh.it> <uhEcH-1bd-31@gated-at.bofh.it> <uoG9H-1yX-5@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Sep 12 07:30:12 2017
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.201
Reply-To Raphael Hertzog <hertzog@debian.org>, 872999@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc VMDebootstrap List <vmdebootstrap-devel@lists.alioth.debian.org>
X-Debian-Pr-Message followup 872999
X-Debian-Pr-Package vmdebootstrap
X-Debian-Pr-Source vmdebootstrap
X-Spam-Bayes score:0.0000 Tokens: new, 9; hammy, 150; neutral, 113; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:NeoMutt, 0.000-+--H*u:NeoMutt, 0.000-+--H*F:U*hertzog, 0.000-+--H*rp:U*raphael, 0.000-+--H*rp:D*ouaza.com
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent NeoMutt/20170609 (1.8.3)
X-Virus-Status Clean
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1404012
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 42
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 872999@bugs.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>, pkg-systemd-maintainers@lists.alioth.debian.org, debian-kernel@lists.debian.org
X-Original-Date Tue, 12 Sep 2017 09:24:39 +0200
X-Original-Message-ID <20170912072439.3elpspozwecknbcv@home.ouaza.com>
X-Original-References <150349587661.18171.15144837513912101786.reportbug@x260-buxy.home.ouaza.com> <20170907101647.3a7mfggzpchben3l@home.ouaza.com> <20170907105308.663bkmeate73qngq@home.ouaza.com> <1504795792.2713.10.camel@decadent.org.uk> <20170907155341.mmveb7x6bqs2cjhm@home.ouaza.com> <1505156681.2825.24.camel@decadent.org.uk> <20170911194724.2yfmp72p5dllizrw@home.ouaza.com> <1505171618.2825.34.camel@decadent.org.uk> <150349587661.18171.15144837513912101786.reportbug@x260-buxy.home.ouaza.com> <1505171618.2825.34.camel@decadent.org.uk>
Xref csiph.com linux.debian.bugs.dist:850104 linux.debian.kernel:58908

Cross-posted to 2 groups.

Show key headers only | View raw


On Tue, 12 Sep 2017, Ben Hutchings wrote:
> > This is strange because schroot does bind-mount /dev in the default
> > profile that I used:
> 
> Then I don't know what's going wrong in your chroot environment.

Me neither.

> > Assuming your analysis is right, what would be the right course of action?
> > 
> > Calling "udevadm trigger <block-device>" after the mkfs call?
> 
> I think that's right... except now I wonder whether it's reasonable to
> assume udevadm in a chroot can talk to udev on the outside.  It looks
> like they would have to share /run/udev/control.

I would have expected something like this too... but that does not seem
to be the case. At least it's not the reason why that call works here
because /run is not shared:
$ grep /run /etc/schroot/default/fstab
# It may be desirable to have access to /run, especially if you wish
#/run           /run            none    rw,bind         0       0
#/run/lock      /run/lock       none    rw,bind         0       0
#/run/shm       /run/shm        none    rw,bind         0       0

So maybe "udevadm trigger" is re-opening and re-closing the device
in write mode and this leads the kernel to emit a new uevent and
udev outside the chroot then reprocesses the device?

> It seems like maybe vmdebootstrap shouldn't be used in a chroot.

Or maybe update-grub should have a FORCE_USE_OF_UUID flag or something
like that. vmdebootstrap does not really care about the by-uuid symlink,
only grub insists on seeing it before accepting to use the UUID as
"root" kernel parameter.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-07 12:20 +0200
  Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-07 13:00 +0200
    Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Ben Hutchings <ben@decadent.org.uk> - 2017-09-07 17:00 +0200
      Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-07 18:00 +0200
        Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Ben Hutchings <ben@decadent.org.uk> - 2017-09-11 21:10 +0200
          Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-11 21:50 +0200
            Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Ben Hutchings <ben@decadent.org.uk> - 2017-09-12 01:20 +0200
              Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-12 09:40 +0200
  Bug#872999: qemu image built by vmdebootstrap is unbootable due to bad root=/dev/mapper/loop0p1 kernel parameter Raphael Hertzog <hertzog@debian.org> - 2017-09-07 16:00 +0200

csiph-web