[systemd-devel] initrd-fs.target

Harald Hoyer harald.hoyer at gmail.com
Tue Mar 5 01:07:27 PST 2013


Am 05.03.2013 09:56, schrieb Harald Hoyer:
> Am 05.03.2013 09:17, schrieb Harald Hoyer:
>> Am 05.03.2013 08:33, schrieb Harald Hoyer:
>>> For me the sysroot-usr.mount is not mounted in my testsuite unless I patch it
>>> like mentioned above.
>>
>> switch_root:/# ls /sysroot/usr/
>> switch_root:/# systemctl status sysroot-usr.mount
>> sysroot-usr.mount - /sysroot/usr
>> 	  Loaded: loaded (/sysroot/etc/fstab)
>> 	  Active: inactive (dead)
>> 	   Where: /sysroot/usr
>> 	    What: /dev/sdb2
>>
>> switch_root:/# systemctl status local-fs.target
>> local-fs.target - Local File Systems
>> 	  Loaded: loaded (/usr/lib/systemd/system/local-fs.target; static)
>> 	  Active: active since Tue 2013-03-05 08:12:17 UTC; 58s ago
>> 	    Docs: man:systemd.special(7)
>>
>> Mar 05 08:12:17 localhost systemd[1]: Starting Local File Systems.
>> Mar 05 08:12:17 localhost systemd[1]: Job local-fs.target/start finished, r...ne
>> Mar 05 08:12:17 localhost systemd[1]: Reached target Local File Systems.
>> switch_root:/# systemctl start local-fs.target
>> switch_root:/# systemctl status sysroot-usr.mount
>> sysroot-usr.mount - /sysroot/usr
>> 	  Loaded: loaded (/sysroot/etc/fstab)
>> 	  Active: active (mounted) since Tue 2013-03-05 08:13:41 UTC; 2s ago
>> 	   Where: /sysroot/usr
>> 	    What: /dev/sdb2
>> 	 Process: 232 ExecMount=/bin/mount /dev/sdb2 /sysroot/usr -t btrfs -o
>> subvol=usr,ro (code=exited, status=0/SUCCESS)
>>
>> Mar 05 08:13:41 localhost systemd[1]: Mounting /sysroot/usr...
>> Mar 05 08:13:41 localhost systemd[1]: About to execute /bin/mount /dev/sdb2...ro
>> Mar 05 08:13:41 localhost systemd[1]: Forked /bin/mount as 232
>> Mar 05 08:13:41 localhost systemd[1]: sysroot-usr.mount changed dead -> mounting
>> Mar 05 08:13:41 localhost systemd[1]: sysroot-usr.mount changed mounting ->...ne
>> Mar 05 08:13:41 localhost systemd[1]: Job sysroot-usr.mount/start finished,...ne
>> Mar 05 08:13:41 localhost systemd[1]: Mounted /sysroot/usr.
>> Mar 05 08:13:41 localhost systemd[1]: Child 232 belongs to sysroot-usr.mount
>> Mar 05 08:13:41 localhost systemd[1]: sysroot-usr.mount mount process exite...=0
>> Mar 05 08:13:41 localhost systemd[1]: sysroot-usr.mount changed mounting-do...ed
>>
> 
> ok, seems to work after a 30s pause.
> 
> [  OK  ] Reached target dracut.
> [    1.067854] systemd[1]: Reloading.
> [    1.125337] ib700wdt: WDT device closed unexpectedly.  WDT will not stop!
> [    1.126285] ib700wdt: WDT device closed unexpectedly.  WDT will not stop!
> [    1.128650] ib700wdt: WDT device closed unexpectedly.  WDT will not stop!
> [    1.130201] ib700wdt: WDT device closed unexpectedly.  WDT will not stop!
> [    1.143238] device label dracutusr devid 1 transid 10 /dev/sdb2
> [    1.148033] btrfs: disk space caching is enabled
> [    1.328218] tsc: Refined TSC clocksource calibration: 2591.585 MHz
> [   31.196611] systemd[1]: Switching root.
> [   31.200509] systemd-cgroups-agent[233]: Failed to get D-Bus connection:
> Failed to connect to socket /org/freedesktop/systemd1/private: Connection refused
> [   31.206183] systemd-journald[55]: Received SIGTERM
> [  OK  ] Stopped Switch Root.
> 

seems to be a timing issue also...

[    1.187037] device label dracutusr devid 1 transid 10 /dev/sdb2
[    1.195875] systemd[1]: Switching root.
[    1.201063] btrfs: disk space caching is enabled
[    1.203918] systemd-journald[54]: Received SIGTERM
[    1.211544] systemd[1]: No /sbin/init, trying fallback
[    1.212769] systemd[1]: Failed to execute /bin/sh, giving up: No such file or
directory



More information about the systemd-devel mailing list