← Back to team overview

touch-packages team mailing list archive

[Bug 1411140] Re: systemd-machine-id-commit.service fails on live system

 

IRC context from today:
didrocks | apw: I just tried t_name_to_handle_at.c from man name_to_handle_at
apw | didrocks, it seems to be returning ENOSUPP for me
apw | didrocks, well it failed, as expected
 didrocks | apw: so, I guess this is expected that overlayfs doesn't support it                                            
 didrocks | hum, I wonder how I can detect if a file is a mount point (meaning, I guess, in that context, being overridden)
 didrocks | apw: the systemd logic is to test a path, test the parent path, and check mount_id                             
 didrocks | the fallback is using stat()                                                                                   
 didrocks | and comparing st_dev                                                                                           
      apw | which sounds ok ?                                                                                              
      apw | oh perhaps not if the path is a file and the parent a directory                                                
 didrocks | apw: yeah, that exactly what happens here, path is file, parent a dir                                          
      apw | its not clear that name_to_handle_at would work any better if it did work of course                            
      apw | this seems like an odd way to work out what is a mountpoint to me, then again it is systemd                    
 didrocks | apw: just run a test, and I confirm that st_dev is different if path == file from parent == dir.     
 didrocks | apw: hum, yeah, seems tricky to even think of a workaround…                                          
 didrocks | the easiest way would be to take another file (if any) into the same dir, but doesn't seem efficient…

-- 
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/1411140

Title:
  systemd-machine-id-commit.service fails on live system

Status in systemd package in Ubuntu:
  Triaged

Bug description:
  Boot the current live system with systemd: Go to gfxboot, select F6,
  press Esc twice, stay in gfxboot, and append init=/bin/systemd to the
  command line. The live system will come up, but degraded:

  ● systemd-machine-id-commit.service - Commit a transient machine-id on disk
     Loaded: loaded (/lib/systemd/system/systemd-machine-id-commit.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2015-01-15 08:08:47 UTC; 1min 57s ago
       Docs: man:systemd-machine-id-commit.service(8)
    Process: 871 ExecStart=/lib/systemd/systemd-machine-id-commit (code=exited, status=1/FAILURE)
   Main PID: 871 (code=exited, status=1/FAILURE)

  Jan 15 08:08:47 ubuntu systemd[1]: Starting Commit a transient machine-id on disk...
  Jan 15 08:08:47 ubuntu systemd[1]: systemd-machine-id-commit.service: main process exited, code=exited, status=1/FAILURE
  Jan 15 08:08:47 ubuntu systemd[1]: Failed to start Commit a transient machine-id on disk.
  Jan 15 08:08:47 ubuntu systemd[1]: Unit systemd-machine-id-commit.service entered failed state.
  Jan 15 08:08:47 ubuntu systemd[1]: systemd-machine-id-commit.service failed.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: systemd 218-3ubuntu3
  ProcVersionSignature: Ubuntu 3.18.0-9.10-generic 3.18.2
  Uname: Linux 3.18.0-9-generic x86_64
  ApportVersion: 2.15.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Jan 15 09:06:46 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-11-20 (55 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141119)
  MachineType: LENOVO 2324CTO
  ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.18.0-9-generic.efi.signed root=UUID=f86539b0-3a1b-4372-83b0-acdd029ade68 ro rootflags=subvol=@ quiet splash vt.handoff=7
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/09/2013
  dmi.bios.vendor: LENOVO
  dmi.bios.version: G2ET95WW (2.55 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 2324CTO
  dmi.board.vendor: LENOVO
  dmi.board.version: 0B98401 Pro
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvrG2ET95WW(2.55):bd07/09/2013:svnLENOVO:pn2324CTO:pvrThinkPadX230:rvnLENOVO:rn2324CTO:rvr0B98401Pro:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 2324CTO
  dmi.product.version: ThinkPad X230
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1411140/+subscriptions


References