Udev starting in debootstrap environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
On debootstrapping fresh environment (amd64 in my case) udevd starts up and prevents from unmounting the image/partition mounted on the target.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
# apt-cache policy udev
udev:
Installed: 204-5ubuntu20.2
Candidate: 204-5ubuntu20.2
Version table:
*** 204-5ubuntu20.2 0
100 /var/lib/
# apt-cache showsrc udev
Package: systemd
Binary: systemd, systemd-sysv, systemd-services, libpam-systemd, libsystemd-login0, libsystemd-
Version: 204-5ubuntu20.2
Priority: required
Section: admin
Maintainer: Ubuntu Developers <email address hidden>
Original-
Build-Depends: debhelper (>= 9), pkg-config, xsltproc, docbook-xsl, docbook-xml, gtk-doc-tools, m4, dh-autoreconf, automake (>= 1.11), autoconf (>= 2.63), intltool, gperf, libcap-dev, libcgmanager-dev, libpam0g-dev, libaudit-dev, libdbus-1-dev (>= 1.3.2), libglib2.0-dev (>= 2.22.0), libcryptsetup-dev (>= 2:1.4.2), libwrap0-dev, libselinux1-dev (>= 2.1.9), libacl1-dev, libattr1-dev, liblzma-dev, libgcrypt11-dev, libkmod-dev (>= 5), libblkid-dev (>= 2.20), libgirepository
Architecture: linux-any
Standards-Version: 3.9.4
Format: 3.0 (quilt)
Directory: pool/main/s/systemd
Files:
4b46ec0025e693
a07619bb19f481
24aba71a24ab88
Uploaders: Tollef Fog Heen <email address hidden>, Michael Biebl <email address hidden>, Marco d'Itri <email address hidden>
Homepage: http://
Vcs-Browser: http://
Vcs-Git: git://anonscm.
Package-List:
gir1.2-gudev-1.0 deb introspection optional
libgudev-1.0-0 deb libs optional
libgudev-1.0-dev deb libdevel optional
libpam-systemd deb admin optional
libsystemd-
libsystemd-daemon0 deb libs optional
libsystemd-id128-0 deb libs optional
libsystemd-
libsystemd-
libsystemd-
libsystemd-
libsystemd-login0 deb libs optional
libudev-dev deb libdevel optional
libudev1 deb libs important
libudev1-udeb udeb debian-installer optional
python-systemd deb python optional
systemd deb admin optional
systemd-services deb admin optional
systemd-sysv deb admin extra
udev deb admin important
udev-udeb udeb debian-installer optional
Checksums-Sha1:
eba3d58db0f1c8
37b45766a44a95
f910e2e867a311
Checksums-Sha256:
286d24c638c9cc
072c393503c7c1
38cbbdbe31bfc1
Testsuite: autopkgtest
# Steps to reproduce:
* create an image/partition of sufficient size (1G will suffice for a simple test) and format with some FS
* debootstrap like: debootstrap --arch=amd64 --variant=minbase --include=
* wait for the debootstrap to finish
* try to unmount --> fail
# Expected outcome:
* be able to cleanly unmount the image/partition
* udev not restarted inside the debootstrap env
The problem lies in the postinst script which does
invoke-rc.d udev restart.
During debootstrapping we have no ability to configure the init scripts policy layer to prevent execution. Therefore the udev postinst should check if it is in a debootstrap environment and if so not start/restart. Other actions like updating HWDB and seting startup scripts are fine and acceptable.
This bug is analogous to Debian #520742, and Ubuntu #1260707.
The solution in debian is to check for debootstrap env and not start/restart.
The issue in Ubuntu seems to have been introduced in 202-0ubuntu6 ( - Add debian/
Changed in systemd (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | New → Triaged |
Changed in systemd (Ubuntu): | |
importance: | Undecided → Low |
Fixed in git, thanks for pointing out!