summaryrefslogtreecommitdiffstats
path: root/scripts/breezy
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2016-02-18 01:10:50 (GMT)
committerSamuel Thibault <sthibault@debian.org>2016-02-18 01:10:50 (GMT)
commitaaac37bbff19d26ac19790c70ee9f42ec92f019c (patch)
treeb84f490c0bf31c20c5e92a147dd6f1659f0bf5ba /scripts/breezy
parent745d40d7bb7a7b37885982ac3b06f836131a45d6 (diff)
downloaddebootstrap-aaac37bbff19d26ac19790c70ee9f42ec92f019c.zip
debootstrap-aaac37bbff19d26ac19790c70ee9f42ec92f019c.tar.gz
debootstrap-aaac37bbff19d26ac19790c70ee9f42ec92f019c.tar.bz2
Split setup_devices in setup_devices and setup_dynamic_devices,
(setup_devices now only deals with static device nodes) and move the calls to setup_devices from the beginning of the second stage to the end of the first stage. setup_dynamic_devices mounts the appropriate filesystems which provide dynamic device nodes for the architectures which need one in debootstrap (kfreebsd and hurd). This fixes a bug in --second-stage introduced in 1.0.34 and exposed by the devices-related changes of 1.0.76: the second stage debootstrap runs "dpkg --print-architecture >/dev/null" at the very beginning of the program when /dev is still empty, so it creates an empty regular file in place of /dev/null and this will cause mknod to fail later. (Closes: #813232)
Diffstat (limited to 'scripts/breezy')
-rw-r--r--scripts/breezy3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/breezy b/scripts/breezy
index e0f0de1..2148cec 100644
--- a/scripts/breezy
+++ b/scripts/breezy
@@ -44,6 +44,8 @@ first_stage_install () {
chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
fi
+ setup_devices
+
x_feign_install () {
local pkg="$1"
local deb="$(debfor $pkg)"
@@ -71,7 +73,6 @@ second_stage_install () {
baseprog="$(($baseprog + ${1:-1}))"
}
- setup_devices
setup_proc
umount_on_exit /dev/.static/dev
umount_on_exit /dev