Bug 2150575

Summary: Creating a snapper config doesn't add it to /etc/sysconfig/snapper
Product: [Fedora] Fedora Reporter: CFS <carolfsu>
Component: snapperAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: agk, igor.raits, lvm-team, msnitzer, ngompa13
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description CFS 2022-12-04 05:38:59 UTC
Description of problem: When creating a new snapper configuration file with snapper create-config, the configuration name should be added to /etc/sysconfig/snapper (according to https://en.opensuse.org/openSUSE:Snapper_Tutorial#Troubleshooting), but it is not. As a consequence, the configuration disappears from snapper list-configs after a while as well as the snapshots.

Version-Release number of selected component (if applicable):
0.10.1

How reproducible:
Always

Steps to Reproduce:
1. Create a new configuration, e.g. `snapper -c home create-config /var/home`
2. Check /etc/sysconfig/snapper
3. Reboot

Actual results:
/etc/sysconfig/snapper doesn't contain the new configuration, it will contain SNAPPER_CONFIGS="" if there were no previous configurations installed.
`snapper list-configs` doesn't list the new configuration.

Expected results:
In /etc/sysconfig/snapper, there should be a line SNAPPER_CONFIGS="home".
`snapper list-configs` should list the new configuration `home`.

Additional info:
The file /etc/sysconfig/snapper can be manually edited to add SNAPPER_CONFIGS="home" and then snapper works as expected.