Le vendredi 06 février 2015 à 12:42 +0100, Olaf Hering a écrit :
I just booted from the partition with current Factory to the partition with 13.2. Somehow systemd deciced to start a fsck on all partitions.
Before it once again wastes a few hours next time this happens it would be nice to detect the culprit.
What is the easiest way to start a shell right before reboot, and another one right before the root filesystem is mounted? I guess the latter is a cmdline option for dracut, and the former requires a special service file.
In the old days I would have done that with halt.local.
I would use a service file like this (untested): [Unit] DefaultDependencies=No After=shutdown.target Before=final.target [Service] Environment=HOME=/root WorkingDirectory=/root StandardInput=tty-force StandardOutput=inherit StandardError=inherit KillMode=process IgnoreSIGPIPE=no SendSIGHUP=yes ExecStart=/usr/sbin/sulogin Type=oneshot [Install] WantedBy=halt.target -- Frederic Crozat Project Manager Enterprise Desktop SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org