B
BlueBuild•5mo ago
Siegfried27

Incomplete yafti module documentation

Looks like for using the yafti module requires creatiing some files in the file system. This is not explained in https://blue-build.org/reference/modules/yafti/
BlueBuild
yafti
The yafti module can be used to install yafti and set it up to run on first boot.
No description
40 Replies
xyny
xyny•5mo ago
i think this is actually just a bug with us forgetting to mkdir -p the directory we are trying to copy the file to it is not necessary to create a config file, as a plain default one is supplied it is, however, highly suggested that you create your own config file the default one isn't really maintained in any meaningful way
Siegfried27
Siegfried27OP•5mo ago
shall i fix it?
xyny
xyny•5mo ago
it's a one-line addition to yafti.sh i have the file open right now, but if you want to create a PR to get your feet wet, sure
Siegfried27
Siegfried27OP•5mo ago
GitHub
modules/modules/yafti/yafti.sh at main · blue-build/modules
BlueBuild standard modules used for building your Atomic Images - blue-build/modules
Siegfried27
Siegfried27OP•5mo ago
in that case you can do it hahah i will be playing with this the whole weekend, probably i will report more bugs
xyny
xyny•5mo ago
great
xyny
xyny•5mo ago
GitHub
fix(yafti): create yafti directory before attempting copy (#299) · ...
BlueBuild standard modules used for building your Atomic Images - fix(yafti): create yafti directory before attempting copy (#299) · blue-build/modules@af2db66
Siegfried27
Siegfried27OP•5mo ago
oh i have created my yafti.yml yafti is not working after first boot also if i launch it from terminal gives me this error
Siegfried27
Siegfried27OP•5mo ago
No description
Siegfried27
Siegfried27OP•5mo ago
i have copy it on the folder it says and works, however it does not autostart which would be the ideal
xyny
xyny•5mo ago
you need to pass yafti the path to your config file if the systemd service doesn't do that, that's a bug and should be fixed
Siegfried27
Siegfried27OP•5mo ago
Yafti works if i run it from the terminal but not in the first boot, any possible reason?
xyny
xyny•5mo ago
it should be started by your DE, so i'm not sure how to check the errors ~/.config/autostart/ublue-firstboot.desktop where did you create it?
Siegfried27
Siegfried27OP•5mo ago
this file does not exist
xyny
xyny•5mo ago
hmm
Siegfried27
Siegfried27OP•5mo ago
No description
xyny
xyny•5mo ago
what about /etc/profile.d/ublue-firstboot.sh? the autostart script expects it at /usr/share/ublue-os/firstboot/yafti.yml
Siegfried27
Siegfried27OP•5mo ago
neither it i have this file yes
xyny
xyny•5mo ago
just to make sure; are you checking your repo or your booted system?
Siegfried27
Siegfried27OP•5mo ago
booted system
xyny
xyny•5mo ago
good good i don't really know then those files should be created by the module
Siegfried27
Siegfried27OP•5mo ago
🫠
xyny
xyny•5mo ago
what about /usr/etc/
Siegfried27
Siegfried27OP•5mo ago
in my recipe i only write this for yafti
No description
Siegfried27
Siegfried27OP•5mo ago
what should i look for ?
xyny
xyny•5mo ago
/usr/etc/profile.d/ublue-firstboot.sh
Siegfried27
Siegfried27OP•5mo ago
No description
Siegfried27
Siegfried27OP•5mo ago
nop
xyny
xyny•5mo ago
profile.d?
Siegfried27
Siegfried27OP•5mo ago
only ublue-os-just.sh profile.d exists
xyny
xyny•5mo ago
okay, then check ls /usr/share/ublue-os/firstboot/launcher
Siegfried27
Siegfried27OP•5mo ago
No description
Siegfried27
Siegfried27OP•5mo ago
launcher
Siegfried27
Siegfried27OP•5mo ago
No description
xyny
xyny•5mo ago
that looks about right if you try running autostart.sh it should start yafti unless you've already ran it and configured it to run only once
Siegfried27
Siegfried27OP•5mo ago
yep hahaha
xyny
xyny•5mo ago
but it should still give output on the CLI you can try deleting the file it checks to see if it's already run in .config, but i forget what it's called
Siegfried27
Siegfried27OP•5mo ago
No description
Siegfried27
Siegfried27OP•5mo ago
it works from termnial but now in the first boot i ran "yafti" before and it worked and now with the script again
Want results from more Discord servers?
Add your server