[Touch-packages] [Bug 1826639] Re: wpasupplicant: unknown keys in no-mac-addr-change.conf
Working for me too. Many thanks. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to wpa in Ubuntu. https://bugs.launchpad.net/bugs/1826639 Title: wpasupplicant: unknown keys in no-mac-addr-change.conf Status in wpa package in Ubuntu: Fix Released Status in wpa source package in Focal: Fix Committed Status in wpa package in Debian: New Bug description: * Impact wpa ships an invalid network-manager configuration that triggers warnings * Test case $ journalctl | grep no-mac-addr-change should not have errors listed * Regression potential the change removes configurations which are not needed (since they set the value to the same one as the default) and in the wrong section, it shouldn't have any visible impact Hi, NetworkManager warns that no-mac-addr-change.conf contains unknown configuration directives: # journalctl | grep no-mac-addr-change Apr 25 09:24:50 vougeot NetworkManager[573]: [1556177090.0596] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, 20-connectivity-ubuntu.conf, no-mac-addr-change.conf) (etc: 10-globally-managed-devices.conf, default-wifi-powersave-on.conf) Apr 25 09:24:50 vougeot NetworkManager[573]: [1556177090.0596] config: unknown key 'wifi.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf' Apr 25 09:24:50 vougeot NetworkManager[573]: [1556177090.0596] config: unknown key 'ethernet.cloned-mac-address' in section [device-mac-addr-change-wifi] of file '/usr/lib/NetworkManager/conf.d/no-mac-addr-change.conf' ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: wpasupplicant 2:2.6-21ubuntu3 Uname: Linux 5.0.9-050009-generic x86_64 ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 CurrentDesktop: KDE Date: Sat Apr 27 13:15:27 2019 SourcePackage: wpa UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1826639/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1877440] Re: /lib/NetworkManager/conf.d values in wrong section
*** This bug is a duplicate of bug 1826639 *** https://bugs.launchpad.net/bugs/1826639 > Thank you for your bug report, the configuration comes > from wpa and has been fixed in > https://salsa.debian.org/debian/wpa/-/commit/00ec8743 Many thanks. And apologies for not running "dpkg -S ..." and mis- classifying the bug. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to wpa in Ubuntu. https://bugs.launchpad.net/bugs/1877440 Title: /lib/NetworkManager/conf.d values in wrong section Status in wpa package in Ubuntu: Fix Committed Bug description: $ g ^VER /etc/os-release VERSION="20.10 (Groovy Gorilla)" VERSION_ID="20.10" VERSION_CODENAME=groovy $ apt-cache policy network-manager network-manager: Installed: 1.22.10-1ubuntu3 Candidate: 1.22.10-1ubuntu3 Version table: *** 1.22.10-1ubuntu3 500 500 http://ch.archive.ubuntu.com/ubuntu groovy/main amd64 Packages 100 /var/lib/dpkg/status $ cat /lib/NetworkManager/conf.d/no-mac-addr-change.conf # Certain drivers are known not to support changing the MAC address. # Disable touching the MAC address on such devices. # # See man NetworkManager.conf # # https://bugzilla.gnome.org/show_bug.cgi?id=777523 [device-mac-addr-change-wifi] match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl wifi.scan-rand-mac-address=no wifi.cloned-mac-address=preserve ethernet.cloned-mac-address=preserve "wifi.cloned-mac-address" and "ethernet.cloned-mac-address=preserve" should be in a "[connection]" section. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1877440/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1877440] [NEW] /lib/NetworkManager/conf.d values in wrong section
Public bug reported: $ g ^VER /etc/os-release VERSION="20.10 (Groovy Gorilla)" VERSION_ID="20.10" VERSION_CODENAME=groovy $ apt-cache policy network-manager network-manager: Installed: 1.22.10-1ubuntu3 Candidate: 1.22.10-1ubuntu3 Version table: *** 1.22.10-1ubuntu3 500 500 http://ch.archive.ubuntu.com/ubuntu groovy/main amd64 Packages 100 /var/lib/dpkg/status $ cat /lib/NetworkManager/conf.d/no-mac-addr-change.conf # Certain drivers are known not to support changing the MAC address. # Disable touching the MAC address on such devices. # # See man NetworkManager.conf # # https://bugzilla.gnome.org/show_bug.cgi?id=777523 [device-mac-addr-change-wifi] match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl wifi.scan-rand-mac-address=no wifi.cloned-mac-address=preserve ethernet.cloned-mac-address=preserve "wifi.cloned-mac-address" and "ethernet.cloned-mac-address=preserve" should be in a "[connection]" section. ** Affects: network-manager (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to network-manager in Ubuntu. https://bugs.launchpad.net/bugs/1877440 Title: /lib/NetworkManager/conf.d values in wrong section Status in network-manager package in Ubuntu: New Bug description: $ g ^VER /etc/os-release VERSION="20.10 (Groovy Gorilla)" VERSION_ID="20.10" VERSION_CODENAME=groovy $ apt-cache policy network-manager network-manager: Installed: 1.22.10-1ubuntu3 Candidate: 1.22.10-1ubuntu3 Version table: *** 1.22.10-1ubuntu3 500 500 http://ch.archive.ubuntu.com/ubuntu groovy/main amd64 Packages 100 /var/lib/dpkg/status $ cat /lib/NetworkManager/conf.d/no-mac-addr-change.conf # Certain drivers are known not to support changing the MAC address. # Disable touching the MAC address on such devices. # # See man NetworkManager.conf # # https://bugzilla.gnome.org/show_bug.cgi?id=777523 [device-mac-addr-change-wifi] match-device=driver:rtl8723bs,driver:rtl8189es,driver:r8188eu,driver:8188eu,driver:eagle_sdio,driver:wl wifi.scan-rand-mac-address=no wifi.cloned-mac-address=preserve ethernet.cloned-mac-address=preserve "wifi.cloned-mac-address" and "ethernet.cloned-mac-address=preserve" should be in a "[connection]" section. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1877440/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1654600] Re: unattended-upgrade-shutdown hangs when /var is a separate filesystem
Before=shutdown.target reboot.target halt.target network.target local- fs.target should be Before=shutdown.target reboot.target halt.target network.target After=local-fs.target because, AIUI, at shutdown, "Before" means "After" and "After" means "Before". So unattended-upgrades.service's ExecStop'll start before local- fs.target, so before "/var" is unmounted and "/var/log" and "/var/run" are gone. [Why is "/var/run" used? This is a native Ubuntu package; are there any versions of Ubuntu where "/var/run" isn't a symlink to "/run"?] -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unattended-upgrades in Ubuntu. https://bugs.launchpad.net/bugs/1654600 Title: unattended-upgrade-shutdown hangs when /var is a separate filesystem Status in unattended-upgrades package in Ubuntu: Fix Released Status in unattended-upgrades source package in Xenial: In Progress Status in unattended-upgrades source package in Yakkety: In Progress Status in unattended-upgrades package in Debian: New Bug description: [SRU justification] This fix is needed to make sure that the system does not hang on shutdown when /var is a speparate file system [Impact] System can hang up to 10 minutes if not fixed. [Fix] Change the systemd unit's ExecStart to an ExecStop so the unit is correctly sequenced. [Test Case] In a VM with /var separated from the / file system, shutdown the VM. It will hang for 10 minutes [Regression] None to be expected. A ExecStop unit will be sequenced before the Before= units which is earlier than previously. [Original description of the problem] The systemd unit file unattended-upgrades.service is used to stop a running unattended-upgrade process during shutdown. This unit file is running together with all filesystem unmount services. The unattended-upgrades service checks if the lockfile for unattended-upgrade (in /var/run) exists, and if it does, there is an unattended-upgrade in progress and the service will wait until it finishes (and therefore automatically wait at shutdown). However, if /var is a separate filesystem, it will get unmounted even though /var/run is a tmpfs that's still mounted on top of the /var/run directory in the /var filesystem. The unattended-upgrade script will fail to find lockfile, sleeps for 5 seconds, and tries to check the lockfile again. After 10 minutes (the default timeout), it will finally exit and the system will continue shutdown. The problem is the error handling in /usr/share/unattended-upgrades/unattended-upgrade-shutdown where it tries to lock itself: while True: res = apt_pkg.get_lock(options.lock_file) logging.debug("get_lock returned %i" % res) # exit here if there is no lock if res > 0: logging.debug("lock not taken") break lock_was_taken = True The function apt_pkg.get_lock() either returns a file descriptor, or -1 on an error. File descriptors are just C file descriptors, so they are always positive integers. The code should check the result to be negative, not positive. I have attached a patch to reverse the logic. Additional information: 1) Description: Ubuntu 16.04.1 LTS Release: 16.04 2) unattended-upgrades: Installed: 0.90ubuntu0.3 Candidate: 0.90ubuntu0.3 Version table: *** 0.90ubuntu0.3 500 500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages 100 /var/lib/dpkg/status 0.90 500 500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://nl.archive.ubuntu.com/ubuntu xenial/main i386 Packages 3) Fast reboot 4) Very slow reboot (after a 10 minutes timeout) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1654600/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice, through both fstab and gpt generators
You're welcome. I wasn't sure whether I had the latest or whether I had a previous version but you didn't bump up the package version so I ran 'apt-get --reinstall install udev systemd libudev1 libsystemd0 libpam-systemd libgudev-1.0-0 gir1.2-gudev-1.0'. Please let me know if you'd some more info to look into why the gpt generator's winning. The fstab generator creates a "swap.target.requires" entry and the gpt generator creates a "swap.target.wants" entry so I would've expected fstab to trump gpt. # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.requires/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap [You didn't generate libsystemd-daemon0, libsystemd-journal0, libsystemd-login0 packages. Are they still needed?] -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice, through both fstab and gpt generators Status in systemd package in Ubuntu: Fix Committed Status in systemd package in Debian: Confirmed Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or dir
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice, through both fstab and gpt generators
Fixed: # journalctl | grep swap Jan 28 07:35:09 yoga.lenovo systemd[1]: Activating swap Swap Partition... Jan 28 07:35:09 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Jan 28 07:35:09 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS Jan 28 07:35:10 yoga.lenovo systemd[1]: Activated swap Swap Partition. Jan 28 07:35:10 yoga.lenovo systemd[1]: Activated swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Wed 2015-01-28 07:35:09 EST; 44min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 372 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Jan 28 07:35:10 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Many thanks. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice, through both fstab and gpt generators Status in systemd package in Ubuntu: Triaged Status in systemd package in Debian: Confirmed Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKerne
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice, through both fstab and gpt generators
Yes. I commented out sda3 in order to suppress the errors. (Swap was mounted nonetheless.) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice, through both fstab and gpt generators Status in systemd package in Ubuntu: Triaged Status in systemd package in Debian: Unknown Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/25/2014 dmi.bios.vendor: LENOVO dmi.bios.version: 76CN35WW dmi.board.asset.tag: No Asset Tag dmi.board.name: Yoga2 dmi.board.vendor: LENOVO dmi.board.version: 31900058STD dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Lenovo Yoga 2 Pro dmi.modalias: dmi:bvnLENOVO:bvr76CN35WW:bd03/25/2014:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr31900058STD:cvnLENOVO:ct10:cvrLenovoYoga2Pro: dmi.product.name: 20266 dmi.product.version: Lenovo Yoga 2 Pro dmi.sys.vendor: LENOVO mtime.conffile..etc.systemd.journald.conf: 2014-10-17T14:43:13.493155 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1399595/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice
Thanks again for looking into this. systemd-gpt-auto-generator output attached. $ cat /etc/fstab # filesystem mountpoint type options dump pass # sda1 UUID=6151-AFD6/boot/efi vfat defaults 01 # sda2 UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 / ext4 defaults 01 # sda3 UUID=73d341f1-eedc-43fc-9e53-ba4194dae3fb noneswap sw00 (Until your post yesterday, I've had sda3 commented out.) ** Attachment added: "result2.tar" https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1399595/+attachment/4304111/+files/result2.tar -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice Status in systemd package in Ubuntu: Incomplete Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/25/2014 dmi.bios.vendor: LENOVO dmi.bios.version: 76CN35WW dmi.board.asset.tag: No Asset Tag dmi.board.name: Yoga2 dmi.board.vendor: LENOVO dmi.board.version: 31900058STD dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Lenovo Yoga 2 Pro dmi.modalias: dmi:bvnLENOVO:bvr76CN35WW:bd03/25/2014:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr319000
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice
Thanks. The gpt generator failed: $ sudo /lib/systemd/system-generators/systemd-gpt-auto-generator /tmp/gpt x x Failed to create unit file x/dev-sda3.swap: No such file or directory $ tar -tf /tmp/result.tar tmp/fstab/ tmp/fstab/boot-efi.mount tmp/fstab/dev-disk-by\\x2duuid-73d341f1\\x2deedc\\x2d43fc\\x2d9e53\\x2dba4194dae3fb.swap tmp/fstab/local-fs.target.wants/ tmp/fstab/local-fs.target.wants/systemd-fsck-root.service tmp/fstab/local-fs.target.requires/ tmp/fstab/local-fs.target.requires/boot-efi.mount tmp/fstab/local-fs.target.requires/-.mount tmp/fstab/swap.target.requires/ tmp/fstab/swap.target.requires/dev-disk-by\\x2duuid-73d341f1\\x2deedc\\x2d43fc\\x2d9e53\\x2dba4194dae3fb.swap tmp/fstab/-.mount tmp/gpt/ ** Attachment added: "result.tar" https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1399595/+attachment/4303820/+files/result.tar -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice Status in systemd package in Ubuntu: Incomplete Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/25/2014 dmi.bios.vendor: LENOVO dmi.bios.version: 76CN35WW dmi.board.asset.tag: No Asset Tag dmi.board.name: Yoga2 dmi.board.vendor: LENOVO dmi.board.version: 31900058STD dmi.chassis.
[Touch-packages] [Bug 1399595] Re: systemd is activating swap twice
(I can't find the option to tag this report with "systemd-boot". Is this a question of Launchpad permissions or am I too stupid to find the right thing to click?) I saw that "/lib/systemd/system-generators/" has systemd-fstab-generator and systemd-gpt-auto-generator so I disabled swap in my fstab: # grep swap /etc/fstab #UUID=73d341f1-eedc-43fc-9e53-ba4194dae3fb noneswap sw0 0 And swap's now activated once: # journalctl | grep swap | grep -v unit_create_cgroups Dec 06 04:21:00 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 06 04:21:00 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS Dec 06 04:21:00 yoga.lenovo systemd[1]: Activated swap Swap Partition. # swapon -s FilenameTypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # find /run -name "*73d341f1*" /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice Status in systemd package in Ubuntu: New Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s Filename TypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directo
[Touch-packages] [Bug 1399595] [NEW] systemd is activating swap twice
Public bug reported: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb: swapon failed: Device or resource busy Dec 05 04:30:40 yoga.lenovo systemd[1]: dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap swap process exited, code=exited status=255 Dec 05 04:30:40 yoga.lenovo systemd[1]: Failed to activate swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb. Dec 05 04:30:40 yoga.lenovo systemd[1]: Unit dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap entered failed state. Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. Dec 05 04:30:40 yoga.lenovo kernel: Adding 8298492k swap on /dev/sda3. Priority:-1 extents:1 across:8298492k SSFS # systemctl status dev-sda3.swap ● dev-sda3.swap - Swap Partition Loaded: loaded (/run/systemd/generator.late/dev-sda3.swap) Active: active since Fri 2014-12-05 04:30:40 EST; 27min ago What: /dev/sda3 Docs: man:systemd-gpt-auto-generator(8) Process: 395 ExecActivate=/sbin/swapon /dev/sda3 (code=exited, status=0/SUCCESS) Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activated swap Swap Partition. # systemctl status dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap ● dev-disk-byx2duuid-73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb.swap - /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb Loaded: loaded Active: inactive (dead) What: /dev/disk/byx2duuid/73d341f1x2deedcx2d43fcx2d9e53x2dba4194dae3fb # swapon -s FilenameTypeSizeUsedPriority /dev/sda3 partition 8298492 0 -1 # blkid /dev/sda3 /dev/sda3: UUID="73d341f1-eedc-43fc-9e53-ba4194dae3fb" TYPE="swap" PARTUUID="63a48c8a-8c88-482c-9577-50060d5afcb0" # find /run -name "*73d341f1*" /run/systemd/generator/swap.target.wants/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/systemd/generator/dev-disk-by\x2duuid-73d341f1\x2deedc\x2d43fc\x2d9e53\x2dba4194dae3fb.swap /run/udev/links/\x2fdisk\x2fby-uuid\x2f73d341f1-eedc-43fc-9e53-ba4194dae3fb # find /run -name "*sda3*" /run/systemd/generator.late/swap.target.wants/dev-sda3.swap /run/systemd/generator.late/dev-sda3.swap ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: systemd 217-3ubuntu1 ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7 Uname: Linux 3.16.0-25-generic x86_64 ApportVersion: 2.14.7-0ubuntu10 Architecture: amd64 CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory Date: Fri Dec 5 04:51:30 2014 MachineType: LENOVO 20266 ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-25-generic root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro init=/lib/systemd/systemd ipv6.disable_ipv6=1 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 03/25/2014 dmi.bios.vendor: LENOVO dmi.bios.version: 76CN35WW dmi.board.asset.tag: No Asset Tag dmi.board.name: Yoga2 dmi.board.vendor: LENOVO dmi.board.version: 31900058STD dmi.chassis.asset.tag: No Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Lenovo Yoga 2 Pro dmi.modalias: dmi:bvnLENOVO:bvr76CN35WW:bd03/25/2014:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr31900058STD:cvnLENOVO:ct10:cvrLenovoYoga2Pro: dmi.product.name: 20266 dmi.product.version: Lenovo Yoga 2 Pro dmi.sys.vendor: LENOVO mtime.conffile..etc.systemd.journald.conf: 2014-10-17T14:43:13.493155 ** Affects: systemd (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug vivid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1399595 Title: systemd is activating swap twice Status in systemd package in Ubuntu: New Bug description: systemd is activating swap twice, via its sda name and its uuid. It looks like it's because two swap units are being generated. # journalctl | grep swap | grep -v unit_create_cgroups Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap Swap Partition... Dec 05 04:30:40 yoga.lenovo systemd[1]: Activating swap /dev/disk/by-uuid/73d341f1-eedc-43fc-9e53-ba4194dae3fb... Dec 05 04:30:40 yoga.lenovo swapon[396]: swapon: /dev/disk/by-uu