Package: systemd
Version: 44-11
Severity: normal

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

Booting my system with systemd takes ages, and nothing is printed to the
screen so I'm not sure why.

    $ systemd-analyze
    Startup finished in 16005ms (kernel) + 91438ms (userspace) = 107443ms

systemd-analyze plot reveals a long delay before swap.target starts, and
when I examine /proc/swaps it seems there are no swap devices enabled.

/etc/fstab contains the following:

    /dev/mapper/swap0     none            swap    sw              0       0

/etc/crypttab contains the following:

    # <target name>     <source device>         <key file>      <options>
    swap0 /dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1 
/dev/urandom swap,cipher=aes-xts-plain64,size=512

The swap device exists:

    $ systemctl status  cryptsetup@swap0.service
    cryptsetup@swap0.service - Cryptography Setup for swap0
              Loaded: loaded (/run/systemd/generator/cryptsetup@swap0.service)
              Active: active (exited) since Sun, 16 Jun 2013 00:20:33 +0100; 
14min ago
             Process: 843 ExecStartPost=/sbin/mkswap /dev/mapper/swap0 
(code=exited, status=0/SUCCESS)
             Process: 731 ExecStart=/lib/systemd/systemd-cryptsetup attach 
swap0 /dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1 
/dev/urandom swap,cipher=aes-xts-plain64,size=512 (code=exited, 
status=0/SUCCESS)
              CGroup: name=systemd:/system/cryptsetup@.service/swap0

    Jun 16 00:20:33 wintermute systemd-cryptse[731]: Set cipher aes, mode 
xts-plain64, key size 512 bits for device 
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1.
    Jun 16 00:20:33 wintermute mkswap[843]: mkswap: /dev/mapper/swap0: warning: 
don't erase bootbits sectors

    # dmsetup info swap0
    Name:              swap0
    State:             ACTIVE
    Read Ahead:        256
    Tables present:    LIVE
    Open count:        0
    Event number:      0
    Major, minor:      254, 0
    Number of targets: 1
    UUID: CRYPT-PLAIN-swap0

However, systemd doesn't agree:

    $ systemctl status dev-mapper-swap0.device
    dev-mapper-swap0.device
              Loaded: loaded
              Active: inactive (dead)

I guess therefore that it doesn't try to activate the corresponding swap
unit:

    $ systemctl status dev-mapper-swap0.swap
    dev-mapper-swap0.swap - /dev/mapper/swap0
              Loaded: loaded
              Active: inactive (dead)
                What: /dev/mapper/swap0
              CGroup: name=systemd:/system/dev-mapper-swap0.swap

And hence swap.target delayed the boot ages while waiting for the
swap unit to be started.

So the bug is two-fold:

 1) swap device is not started

 2) no indication to the user why the boot is taking so long!

- -- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (540, 'testing'), (530, 'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  dpkg                 1.16.10
ii  initscripts          2.88dsf-41
ii  libacl1              2.2.52-1
ii  libaudit0            1:1.7.18-1.1
ii  libc6                2.17-3
ii  libcap2              1:2.22-1.2
ii  libcryptsetup4       2:1.4.3-4
ii  libdbus-1-3          1.6.10-1
ii  libkmod2             9-3
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.3-9
ii  libselinux1          2.1.13-2
ii  libsystemd-daemon0   44-11
ii  libsystemd-id128-0   44-11
ii  libsystemd-journal0  44-11
ii  libsystemd-login0    44-11
ii  libudev0             175-7.2
ii  libwrap0             7.6.q-24
ii  udev                 175-7.2
ii  util-linux           2.20.1-5.4

Versions of packages systemd recommends:
ii  libpam-systemd  44-11

Versions of packages systemd suggests:
ii  python        2.7.5-2
ii  python-cairo  1.8.8-1+b2
ii  python-dbus   1.2.0-2
ii  systemd-gui   1:2-2

- -- no debconf information

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

iEYEARECAAYFAlG8+48ACgkQshl/216gEHjGDgCfaEjzjIrZx2qjn7B3qtCzPg5I
uAkAoIwuuG/8VNSHjhrc8nF8U9J3mUqF
=HPne
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to