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

Bug#498731: marked as done (debootstrap: Move setup_devices to second_stage (or hurd-i386 fails))



Your message dated Fri, 29 Jul 2011 10:02:21 +0000
with message-id <E1Qmjtd-0000Uj-Em@franck.debian.org>
and subject line Bug#498731: fixed in debootstrap 1.0.34
has caused the Debian Bug report #498731,
regarding debootstrap: Move setup_devices to second_stage (or hurd-i386 fails)
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.)


-- 
498731: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498731
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.10
Tags: patch

Hello,

right now, cross-debootstrapping a hurd-i386 system (from i386, e.g.)
fails (silently) in first stage after extracting packages.

This is because debootstrap runs setup_devices in first stage, and we
cannot setup the Hurd translators at this point when running
GNU/Linux because the necessary tools and kernel support is not
available[1].

Would it be possible to move the setup_devices call to second stage, at
least when ARCH=hurd-i386?  I assume setting up the devices is required
for Linux arches when using --foreign, so that a boot into the new
system will have a /dev tree and might fail otherwise.

We modified the hurd package so that it can boot fine after just being
unpacked without the need for having translators/devices setup, i.e. the
debootstrap --foreign case.

I've attached a patch which works for my case, though it might not be
the most elegant solution.


thanks,

Michael

[1] There has been a Linux kernel patch which adds support in ext2 for
passive Hurd translators as extended attributes, making them
readable/writable via f{get,set}xattr, but this one is out-of-tree
--- /usr/share/debootstrap/scripts/sid	2008-07-02 17:44:35.000000000 +0200
+++ sid	2008-09-12 20:37:49.000000000 +0200
@@ -50,10 +50,12 @@
         cp "$TARGET/usr/bin/md5sum.textutils" "$TARGET/usr/bin/md5sum"
     fi
 
-    if doing_variant fakechroot; then 
-        setup_devices_fakechroot
-    else
-        setup_devices
+    if [ "$ARCH" != "hurd-i386" ]; then
+        if doing_variant fakechroot; then 
+            setup_devices_fakechroot
+        else
+            setup_devices
+        fi
     fi
 
     x_feign_install () {
@@ -79,6 +81,14 @@
 }
 
 second_stage_install () {
+    if [ "$ARCH" = "hurd-i386" ]; then
+        if doing_variant fakechroot; then
+            setup_devices_fakechroot
+        else
+            setup_devices
+        fi
+    fi
+
     x_core_install () {
 	smallyes '' | in_target dpkg --force-depends --install $(debfor "$@")
     }

--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.34

We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive:

debootstrap-udeb_1.0.34_all.udeb
  to main/d/debootstrap/debootstrap-udeb_1.0.34_all.udeb
debootstrap_1.0.34.dsc
  to main/d/debootstrap/debootstrap_1.0.34.dsc
debootstrap_1.0.34.tar.gz
  to main/d/debootstrap/debootstrap_1.0.34.tar.gz
debootstrap_1.0.34_all.deb
  to main/d/debootstrap/debootstrap_1.0.34_all.deb



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 498731@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otavio Salvador <otavio@debian.org> (supplier of updated debootstrap 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: SHA256

Format: 1.8
Date: Thu, 28 Jul 2011 19:13:10 +0200
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source all
Version: 1.0.34
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Otavio Salvador <otavio@debian.org>
Description: 
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 498731 531316 588773 633625
Changes: 
 debootstrap (1.0.34) unstable; urgency=low
 .
   * Add more information regarding the version and architecture in case
     a download fails. Closes: #633625.
   * add /usr/sbin and /sbin to PATH for fakechroot variant. Closes:
     #588773
   * Move setup_devices to second stage of bootstrap. Closes: #498731,
     #531316
Checksums-Sha1: 
 bb1d251c40d593e727a836601eeb84b418e9c32d 1692 debootstrap_1.0.34.dsc
 85663031255929dc500e4d35d54c96251f8400fc 54997 debootstrap_1.0.34.tar.gz
 dae23e20241f4b3c05e85fe3e1bbc74710ba3504 58264 debootstrap_1.0.34_all.deb
 2bc268bf7e221bf3e1707e4044cd7c7ca1fcfa60 18782 debootstrap-udeb_1.0.34_all.udeb
Checksums-Sha256: 
 de39aad5608efb30f39c048c14ee1c2f8d4675c76d929bd59644d64f2526122b 1692 debootstrap_1.0.34.dsc
 bd14a3431485066812d70e56ce090fd8b7e53c6b35ed1afb00039d4b796b5c18 54997 debootstrap_1.0.34.tar.gz
 af9d142525f257ef07b07c7a924b42fbf6b3b4acc2dfdee26acfe2fa4186dd34 58264 debootstrap_1.0.34_all.deb
 537bf8fbefc0e2a3a73a3847a6a32aeb339650a5766af3d63ccc8f7f86cb2a41 18782 debootstrap-udeb_1.0.34_all.udeb
Files: 
 47a1050d29dbe688731bfd611821f988 1692 admin extra debootstrap_1.0.34.dsc
 58908eb6eea71e884561fb268178967f 54997 admin extra debootstrap_1.0.34.tar.gz
 7c720b604575ce379f09afedd57182ad 58264 admin extra debootstrap_1.0.34_all.deb
 eabcaaf6a2787dab0bd862f0625bc9ab 18782 debian-installer extra debootstrap-udeb_1.0.34_all.udeb
Package-Type: udeb

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

iQIcBAEBCAAGBQJOMoJcAAoJEOtw/vPN/G5PisgQAJsqXH0u6nnDHeZWhC9aQRoC
Inv4r8CsdKnNny382yv7oRbDWVGjS9Bd/uh7wBF7/qfNfDnDLZpcIucTEs7II2E/
lu4JHVwqJEM/6L1bX+JbL1Yr0fD17dMMgUzpqoF3uD+XoSUWG/tzM7GO9eTBRlXr
AjiBn/p5chwQoZXgULJizAHGop203wixNGLur2IX8SGuIPwVBffi0PxzmVH/iySa
7xf0rXCvQlwtXEZsewA0huwiPPHYzW0MK2K5K0m2m8ZEKDsrFaAatTa9io+1GaCI
n7IlAGNIQOpdYWJMvg1cWdLWqJIacE3XU9UODT/YRfvlVqz8pInLBeO+V83Mmu7t
O79q7M7J3WFJR/Mwtim6nwKWxheiiUbfvt43R1QB4GoaFQQx9jRU6LQiS88fS+ew
lyP39ylTaOxQIZhYBlVqPcsLxstu0mpWkgjft3/p+aTcdSQYLJ6XF19ZA0DdSRnr
v6CsiqUkLzaWMgFXxSvHHzbMO1RCkcq54rwo4DS+hraWG09cu1SyVK9qj5Wi/fDn
d6PLTId7tDt1lzi6zMD9zOPoIzxlZ2RffpN4DgLtVL1Y+XQUtT3yf0+CAP0L7Suz
0WUqH6jltKqt5hi9Lca2SsCBnsuo+hnMPVqiRts6jhz2U9IyUPk+X20iS2mhKf1p
4JSA0/RJDFGvKEH3TAuv
=yuD9
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: