openSUSE / jeos-firstboot

Lightweight firstboot wizard systemd service for SLE and openSUSE JeOS Images
MIT License
14 stars 13 forks source link

Use the snapper config to determine whether to run setup-quota (boo#1192940) #84

Closed Vogtinator closed 2 years ago

Vogtinator commented 2 years ago

It's possible that btrfs quotas are enabled, but the snapper-specific configuration wasn't done yet. Check for the QGROUP snapper config directly and call snapper setup-quota if not set. It can deal with already enabled btrfs quotas as well.

Vogtinator commented 2 years ago

Also, meanwhile the jeos-firstboot service is run when DBus is up, so we could possibly drop the --no-dbus. That avoids issues if snapperd.service is already started in the background and thus might miss the config change. On the other hand, it triggers snapperd.service to start, so might result in a deadlock if the dependencies are changed in an incompatible way.

Vogtinator commented 2 years ago

Potentially we could also remove this entirely, and rely completely on Kiwi to set this up.

Vogtinator commented 2 years ago

Closing in favor of #86.