UB
Universal Blueโ€ข16mo ago
bsherman

it s the usr lib systemd system preset

it's the usr/lib/systemd/system-preset dir
96 Replies
bsherman
bshermanOPโ€ข16mo ago
this is getting very busy ๐Ÿ™‚ so threading
bsherman
bshermanOPโ€ข16mo ago
GitHub
config/files/usr/lib/systemd/system-preset/10-flatpak-system-update...
A layer to provide configuration files (udev rules, service units, etc) - ublue-os/config
beekabop
beekabopโ€ข16mo ago
alright
bsherman
bshermanOPโ€ข16mo ago
this solution requires adding 2 new files... one for bluefin and one for bluefin-dx>>> or... one per service, depending on how you want to think about it
beekabop
beekabopโ€ข16mo ago
so instead enabling it in the RUN command, i add a file that it enables it via that file. and that triggers automaticly?
bsherman
bshermanOPโ€ข16mo ago
right, the presets are how systemd assumes the default (preset) state of a service... enabled or not
beekabop
beekabopโ€ข16mo ago
aah I see can i do unmask in there also i see we do unmask and then enable of the service
bsherman
bshermanOPโ€ข16mo ago
i don't know if the unmask is needed in the preset... i think it's there only because when adding that new file in container it needed it to execute enable in the contianer runtime, but the preset just enabling should be enough
beekabop
beekabopโ€ข16mo ago
alright. lets do this and see how this works out ๐Ÿ˜„ thanks for helping me
bsherman
bshermanOPโ€ข16mo ago
hey! thanks for wanting to contribute!
If I didn't want to help, I shouldn't have commented ๐Ÿ˜‰ (and made things confusing) LOL
beekabop
beekabopโ€ข16mo ago
ok lets see where goes from here
bsherman
bshermanOPโ€ข16mo ago
GitHub
fix: move /etc/ to /usr/etc/ by bobslept ยท Pull Request #441 ยท ublu...
Fixes #428 Follow up of PR #434 This moves the current /etc/ folders to their corresponding /usr/etc folder.
bsherman
bshermanOPโ€ข16mo ago
minor nitpick, since you'll probalby need to do another preset for framework... with these ... the number in the filename matters
beekabop
beekabopโ€ข16mo ago
its when they are execute in which order?
bsherman
bshermanOPโ€ข16mo ago
you want this override to come later... so i'd probably make them 95-dconf-update.preset and 95-fprintd.preset if you look at your own running system ls /usr/lib/systemd/system-preset you'll probably see what i mean 90-default.presethas a lot of stuff in it 99-default-disable.preset is the last one to run, and it disables anything which wasn't already enabled by preset not sure if it's critical, but it seems like "good practice"
beekabop
beekabopโ€ข16mo ago
i see
bsherman
bshermanOPโ€ข16mo ago
ah, and looks like it's a preset is NOT actually needed for frpint.d because the fprintd.service file added is an override of the pre-installed service
beekabop
beekabopโ€ข16mo ago
alright well that is good news
bsherman
bshermanOPโ€ข16mo ago
yep
beekabop
beekabopโ€ข16mo ago
now only rename it to 95 then if all is green ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
it's looking good I probably should PR a fix to that fprintd.service the better way to override a service is with an override but, i'm not going to sweat it too much, it certainly does the job
beekabop
beekabopโ€ข16mo ago
sorry, should I still add one for fprintd.serivce?
bsherman
bshermanOPโ€ข16mo ago
and in this specific use case, i can see it making sense
beekabop
beekabopโ€ข16mo ago
its in the middle of the night here. i'm trying my best to follow everything ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
no, you should need a preset for fpintd ... i'll update my comment on Github PR, too
beekabop
beekabopโ€ข16mo ago
how do call that number change, change of level? priority?
bsherman
bshermanOPโ€ข16mo ago
i'd just say "rename" i don't know what to call it for sure either
beekabop
beekabopโ€ข16mo ago
oke haha don't overthink it alright
bsherman
bshermanOPโ€ข16mo ago
looks good
beekabop
beekabopโ€ข16mo ago
nice would be nice to get this one finally fixed up ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
now... ๐Ÿ™‚ who uses Bluefin and will test it? ;-D
beekabop
beekabopโ€ข16mo ago
i do ofcourse
bsherman
bshermanOPโ€ข16mo ago
good ๐Ÿ˜„
beekabop
beekabopโ€ข16mo ago
but i will fire up a good old vm for that should i rebase fresh or update, what do you want sir ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
I'm quite confident a new install will work... I'm a little curious how the change of files in /etc to /usr/etc will look to to a bluefin user.... i'm hopeful it's not even noticed
beekabop
beekabopโ€ข16mo ago
i have bluefin-dx vm on 38.20230824.0 wil do an upgrade if all is merged
bsherman
bshermanOPโ€ข16mo ago
that's great!
beekabop
beekabopโ€ข16mo ago
man i just love this. i've been using silverblue for a few years already. but it feels so easy on bluefin. its insane. ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
oh! you are more of a veteran than me, then! ๐Ÿ™‚ I did try silverblue a couple years ago, but i didn't understand "why" it was some of Jorge's videos last October/November that caught my interest ... and then, when I saw it could be built using Containerfiles and github (skills I had) I was hooked!
beekabop
beekabopโ€ข16mo ago
yeah that is awesome, he is taking it to the next level. all that stuff is fairly new for me. but i'd got the concept, and that changing stuf in github and just have the stabilty of silverblue. man i was all in ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
where in the world are you, may I ask?
beekabop
beekabopโ€ข16mo ago
and a great way of learning all that container/cloud stuff a littile i'm from the netherlands
bsherman
bshermanOPโ€ข16mo ago
great! I had some good friends from the netherlands who lived here in the USA for several years. Our daughters were good friends.
beekabop
beekabopโ€ข16mo ago
ooh really. small world and all ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
and yes, I love learning, too... i get to share some knowledge but also keep learning!
beekabop
beekabopโ€ข16mo ago
yeah for sure. and some great people. i love the vibe. feels very good
bsherman
bshermanOPโ€ข16mo ago
We learned an important word/concept (forgive my improper spelling)... Gezelig
beekabop
beekabopโ€ข16mo ago
not that i talk a lot, but i read and follow the chat and stuff hahah yes it is gezellig in here! ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
๐Ÿ™‚
beekabop
beekabopโ€ข16mo ago
brb alright there we go dconf-update is disabled; preset enabled did not run
bsherman
bshermanOPโ€ข16mo ago
what is output of systemctl status dconf-update ? i should fire a VM for this too
beekabop
beekabopโ€ข16mo ago
[user@fedora ~]$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; disabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead)
Docs: https://github.com/coreos/rpm-ostree/issues/1944
[user@fedora ~]$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; disabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead)
Docs: https://github.com/coreos/rpm-ostree/issues/1944
bsherman
bshermanOPโ€ข16mo ago
interesting... ok, it seems i have a bluefin VM! ๐Ÿ™‚ so i'm upgrading mine also
beekabop
beekabopโ€ข16mo ago
check your current output of dconf-update i did before the upgrade, and then it had run on mine
bsherman
bshermanOPโ€ข16mo ago
$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead) since Sun 2023-08-27 19:30:31 CDT; 1min 32s ago
Docs: https://github.com/coreos/rpm-ostree/issues/1944
Process: 741 ExecStart=/usr/bin/dconf update (code=exited, status=0/SUCCESS)
Main PID: 741 (code=exited, status=0/SUCCESS)
CPU: 8ms

Aug 27 19:30:31 fedora systemd[1]: Starting dconf-update.service - Update the dconf database onboot...
Aug 27 19:30:31 fedora systemd[1]: dconf-update.service: Deactivated successfully.
$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead) since Sun 2023-08-27 19:30:31 CDT; 1min 32s ago
Docs: https://github.com/coreos/rpm-ostree/issues/1944
Process: 741 ExecStart=/usr/bin/dconf update (code=exited, status=0/SUCCESS)
Main PID: 741 (code=exited, status=0/SUCCESS)
CPU: 8ms

Aug 27 19:30:31 fedora systemd[1]: Starting dconf-update.service - Update the dconf database onboot...
Aug 27 19:30:31 fedora systemd[1]: dconf-update.service: Deactivated successfully.
[bsherman@fedora ~]$ find /etc/systemd/|grep dconf
/etc/systemd/system/dconf-update.service
/etc/systemd/system/multi-user.target.wants/dconf-update.service
[bsherman@fedora ~]$ find /etc/systemd/|grep dconf
/etc/systemd/system/dconf-update.service
/etc/systemd/system/multi-user.target.wants/dconf-update.service
beekabop
beekabopโ€ข16mo ago
user@fedora ~]$ find /etc/systemd/|grep dconf
/etc/systemd/system/dconf-update.service
user@fedora ~]$ find /etc/systemd/|grep dconf
/etc/systemd/system/dconf-update.service
if i enable it with systemctl i get the same output on find as you
bsherman
bshermanOPโ€ข16mo ago
rebooting my VM to check yep, same thing i'm confused by this maybe we just need to create the default symlinks that is... in git repo
mkdir usr/etc/systemd/system/multi-user.target.wants
ln -s ../dconf-update.service
mkdir usr/etc/systemd/system/multi-user.target.wants
ln -s ../dconf-update.service
and then add that symlink to repo i know it's late, i can try this if you want
beekabop
beekabopโ€ข16mo ago
if you want to, i would be very happy its almost 3 oclock at night haha yes well, 2:42 but before figured this out i know jorge is -6 hours, like 20:43 or something overthere?
bsherman
bshermanOPโ€ข16mo ago
yep, and i'm 19:44
beekabop
beekabopโ€ข16mo ago
oh nice ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
GitHub
fix: force enable dconf-update service via symlink by bsherman ยท Pu...
Since the systemd/system-preset enabled, but didn't create the target.wants symlink, we may need this to ensure the service starts as is expected.
beekabop
beekabopโ€ข16mo ago
want me to approve that oh you just puting in a symlink right in the repo
bsherman
bshermanOPโ€ข16mo ago
you may, i mostly wanted you to see what i was doing and let me know if it makes sense @akdev asked for an approval on above because we made a minor problem in bluefin ๐Ÿ™‚
akdev
akdevโ€ข16mo ago
Can you use systemctl to do that? (Not sure if desirable but just another approach)
bsherman
bshermanOPโ€ข16mo ago
the history on this is moving /etc stuff to /usr/etc
akdev
akdevโ€ข16mo ago
Looks ok to me
bsherman
bshermanOPโ€ข16mo ago
and if a service is in /usr/etc can't do a systemctl enable for it within container
akdev
akdevโ€ข16mo ago
Yeah makes sense I guess it will write in /etc
bsherman
bshermanOPโ€ข16mo ago
yeah, and we did try the usr/lib/systemd/system-preset but though it shows "preset: enabled" the service is not actually enabled after upgrading to this image
beekabop
beekabopโ€ข16mo ago
would this make the preset not needed then?
bsherman
bshermanOPโ€ข16mo ago
yes, it would be not needed but it's not hurting anything
beekabop
beekabopโ€ข16mo ago
no exactly just curious
bsherman
bshermanOPโ€ข16mo ago
if the preset is removed the service would show as ; enabled; preset: disabled with it we'll have ; enabled; preset: enabled
beekabop
beekabopโ€ข16mo ago
better
bsherman
bshermanOPโ€ข16mo ago
i think so, yes
beekabop
beekabopโ€ข16mo ago
if would be nice if this works. then maybe later i will try to find out why such preset is still disabled i will wait till this is merged and test it and after that i will go to my bed
bsherman
bshermanOPโ€ข16mo ago
good plan i'd like to know if a new install works
beekabop
beekabopโ€ข16mo ago
at least we didn't totally trashed the pc
bsherman
bshermanOPโ€ข16mo ago
but not an upgrade
beekabop
beekabopโ€ข16mo ago
ooh rebase from silverblue
bsherman
bshermanOPโ€ข16mo ago
righ right
beekabop
beekabopโ€ข16mo ago
well you are in luck let me clone my silverblue i will rebase from there well i'm rebasing ๐Ÿคž
bsherman
bshermanOPโ€ข16mo ago
oh... but from which image LOL
beekabop
beekabopโ€ข16mo ago
from silverblue to bluefin-dx just like a normal new installation without using the ublue iso ๐Ÿ˜› rebooting as we speak
bsherman
bshermanOPโ€ข16mo ago
yeah, i wonder if you'll get the image with thew new symlink or not
beekabop
beekabopโ€ข16mo ago
i've got yafti and
user@fedora ~]$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; enabled; preset:>
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead) since Mon 2023-08-28 03:13:48 CEST; 27s ago
Docs: https://github.com/coreos/rpm-ostree/issues/1944
Process: 892 ExecStart=/usr/bin/dconf update (code=exited, status=0/SUCCESS)
Main PID: 892 (code=exited, status=0/SUCCESS)
CPU: 18ms

Aug 28 03:13:47 fedora systemd[1]: Starting dconf-update.service - Update the d>
Aug 28 03:13:48 fedora systemd[1]: dconf-update.service: Deactivated successful>
Aug 28 03:13:48 fedora systemd[1]: Finished dconf-update.service - Update the d>
lines 1-13/13 (END)
user@fedora ~]$ systemctl status dconf-update.service
โ—‹ dconf-update.service - Update the dconf database onboot
Loaded: loaded (/etc/systemd/system/dconf-update.service; enabled; preset:>
Drop-In: /usr/lib/systemd/system/service.d
โ””โ”€10-timeout-abort.conf
Active: inactive (dead) since Mon 2023-08-28 03:13:48 CEST; 27s ago
Docs: https://github.com/coreos/rpm-ostree/issues/1944
Process: 892 ExecStart=/usr/bin/dconf update (code=exited, status=0/SUCCESS)
Main PID: 892 (code=exited, status=0/SUCCESS)
CPU: 18ms

Aug 28 03:13:47 fedora systemd[1]: Starting dconf-update.service - Update the d>
Aug 28 03:13:48 fedora systemd[1]: dconf-update.service: Deactivated successful>
Aug 28 03:13:48 fedora systemd[1]: Finished dconf-update.service - Update the d>
lines 1-13/13 (END)
so it looks like it ๐Ÿ˜„
bsherman
bshermanOPโ€ข16mo ago
rpm-ostree status ?
beekabop
beekabopโ€ข16mo ago
[user@fedora ~]$ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
โ— ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
Digest: sha256:d42fd6c5b7fdb8d774433de39fb8d23fc90f96ea2147bc8418225ef6af326aed
Version: 38.20230827.0 (2023-08-28T01:05:20Z)

fedora:fedora/38/x86_64/silverblue
Version: 38.20230817.0 (2023-08-17T00:42:56Z)
Commit: ab199cfdb046a416c28f9182a32c993d74fdea698e19c61c5e0ff3620e796999
GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
[user@fedora ~]$
[user@fedora ~]$ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
โ— ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
Digest: sha256:d42fd6c5b7fdb8d774433de39fb8d23fc90f96ea2147bc8418225ef6af326aed
Version: 38.20230827.0 (2023-08-28T01:05:20Z)

fedora:fedora/38/x86_64/silverblue
Version: 38.20230817.0 (2023-08-17T00:42:56Z)
Commit: ab199cfdb046a416c28f9182a32c993d74fdea698e19c61c5e0ff3620e796999
GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
[user@fedora ~]$
bsherman
bshermanOPโ€ข16mo ago
that's the brand new image
beekabop
beekabopโ€ข16mo ago
yes i think we did it
bsherman
bshermanOPโ€ข16mo ago
good enough ๐Ÿ™‚ i'm convinced new installs(rebase) and upgrades work fine with this service
beekabop
beekabopโ€ข16mo ago
i think so yes. i could already have seen it, because wallpaper and stuff is set via dconf-update ๐Ÿ˜„ if i'm correct
bsherman
bshermanOPโ€ข16mo ago
cool. well, you get some sleep ๐Ÿ˜„
beekabop
beekabopโ€ข16mo ago
and yafti is cruising all the tools are there i think we are good well thanks so much. awesome ride. and enjoy your evening!
bsherman
bshermanOPโ€ข16mo ago
you're welcome! good night
beekabop
beekabopโ€ข16mo ago
bye
Want results from more Discord servers?
Add your server