Outstanding problems
Moderator: M. Eerie
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Outstanding problems
"the problem is that it is failing to unmount aufs cleanly."
Not sure if its possible to do with systemd but in Porteus we have a function at the end of rc6 which does chroot back to the /mnt/live (our initrd) and then unmouts everything through the /mnt/live/cleanup script.
If cleanup script is used in Nemesis then please call the shell few times and check whats left mounted (try to unmount manually, if works then add to the cleanup script).
Please mind that you will be able to unmount aufs rw branch (changes) only when all modules are deactivated. You need to unmount rw branch properly to avoid 'fs was not unmounted cleanly' message during boot. If rw is placed on tmpfs then no need to worry about proper dissembling of the aufs.
Not sure if its possible to do with systemd but in Porteus we have a function at the end of rc6 which does chroot back to the /mnt/live (our initrd) and then unmouts everything through the /mnt/live/cleanup script.
If cleanup script is used in Nemesis then please call the shell few times and check whats left mounted (try to unmount manually, if works then add to the cleanup script).
Please mind that you will be able to unmount aufs rw branch (changes) only when all modules are deactivated. You need to unmount rw branch properly to avoid 'fs was not unmounted cleanly' message during boot. If rw is placed on tmpfs then no need to worry about proper dissembling of the aufs.
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Outstanding problems
Thanks Fanthom. I did this with another build that didn't use systemd. Will be looking into the unmount messages tonight.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Outstanding problems
It seems systemd can hand back to initrd during shutdown. Now I just need to figure out how to get it working. If anyone has already accomplished this please let me know.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Outstanding problems
Run systemd from initrd and handle shutdown:
https://github.com/scaleway/initrd/issues/31
Maybe Dracut package in aur:
http://www.freedesktop.org/wiki/Softwar ... Interface/
If the executable /run/initramfs/shutdown exists systemd will use it to jump back into the initrd on shutdown. /run/initramfs should be a usable initrd environment to which systemd will pivot back and the "shutdown" executable in it should be able to detach all complex storage that for example was needed to mount the root file system
http://www.pkill.info/linux/man/8-dracut-shutdown/
https://wiki.archlinux.org/index.php/Dracut
https://github.com/scaleway/initrd/issues/31
Maybe Dracut package in aur:
http://www.freedesktop.org/wiki/Softwar ... Interface/
If the executable /run/initramfs/shutdown exists systemd will use it to jump back into the initrd on shutdown. /run/initramfs should be a usable initrd environment to which systemd will pivot back and the "shutdown" executable in it should be able to detach all complex storage that for example was needed to mount the root file system
http://www.pkill.info/linux/man/8-dracut-shutdown/
https://wiki.archlinux.org/index.php/Dracut
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Outstanding problems
Thanks Francois. This is the technique I am using (/run/initramfs/shutdown) and it seems to work except systemd goes on killing spree trying to unmount everything before handing back to initrd. This means the ugly red messages are inevitable, although not serious. After it fails it will hand back to the cleanup script which will successfully unmount everything. I may need to restructure the initrd a little which sux.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Outstanding problems
1.0 initram issue, you had a look on this:
https://github.com/scaleway/initrd/comm ... 255b771c9b
2.0 For D-Bus connection error from journalctl:
Oct 27 00:24:35 nemesis kaccess[783]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
But you do not have kde installed on your system, whereas I do.
https://github.com/scaleway/initrd/comm ... 255b771c9b
2.0 For D-Bus connection error from journalctl:
Oct 27 00:24:35 nemesis kaccess[783]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
But you do not have kde installed on your system, whereas I do.
Prendre son temps, profiter de celui qui passe.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Outstanding problems
Looks like systemd natively supports booting from initramfs and going back to it:
http://www.phoronix.com/forums/forum/ph ... post832403
Unfortunately i dont know any other details. Perhaps you could look how Fedora/Debian does it.
http://www.phoronix.com/forums/forum/ph ... post832403
Unfortunately i dont know any other details. Perhaps you could look how Fedora/Debian does it.
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Outstanding problems
I have it sorted. systemd is handing back to initrd to unmount everything ok. Systemd tries to unmount the base modules first though, which results in a red message. All is working ok, but the error messages are ugly.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Outstanding problems
Can you tell systemd to skip mounts from specific location like /mnt/live/?
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: Outstanding problems
Looking into it now. It must be possible.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.