Bug 2150575 - Creating a snapper config doesn't add it to /etc/sysconfig/snapper
Summary: Creating a snapper config doesn't add it to /etc/sysconfig/snapper
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: snapper
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-04 05:38 UTC by CFS
Modified: 2023-08-02 02:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.