Outstanding problems

Arch based Porteus community project
User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Outstanding problems

Post#31 by fanthom » 25 Oct 2015, 12:59

"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.
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Outstanding problems

Post#32 by brokenman » 25 Oct 2015, 13:09

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.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Outstanding problems

Post#33 by brokenman » 28 Oct 2015, 23:39

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.

User avatar
francois
Contributor
Contributor
Posts: 4901
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Outstanding problems

Post#34 by francois » 29 Oct 2015, 02:19

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
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Outstanding problems

Post#35 by brokenman » 30 Oct 2015, 00:46

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.

User avatar
francois
Contributor
Contributor
Posts: 4901
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Outstanding problems

Post#36 by francois » 31 Oct 2015, 15:51

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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Outstanding problems

Post#37 by fanthom » 01 Nov 2015, 20:34

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Outstanding problems

Post#38 by brokenman » 02 Nov 2015, 01:38

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.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Outstanding problems

Post#39 by fanthom » 02 Nov 2015, 07:30

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.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Outstanding problems

Post#40 by brokenman » 02 Nov 2015, 14:39

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.

Post Reply