Skip to content

Commit

Permalink
Initial success with orange flavor without snapper:
Browse files Browse the repository at this point in the history
- added two configuration booleans for btrfs
- elemental upgrade is now working on orange flavor
- orange iso builds and install in btrfs

Still have to implement the 'max-snaps' when snapper is disabled.
Try to make snapper configuration work on orange too

btrfs configuration:
- disable-snapper: disable snapper usage and rely only over btrfsprogs. tested on orange and green
- disable-default-subvolume: disable subvolume get/set-default (as it is an incompat feature of btrfs). When default subvolume usage is disabled, a symlink is used in the state dir to find active snapshot.

It is not possible to disable default subvolume usage while using snapper (an error is returned).

TODO:
- try to rework snapper based snapshotter
- implements 'max-snaps'
  • Loading branch information
rdesaintleger committed Oct 22, 2024
1 parent e20d8e2 commit 24ea39a
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 165 deletions.
4 changes: 2 additions & 2 deletions examples/orange/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
podman \
btrfs-progs \
btrfsmaintenance \
snapper \
xz-utils
xz-utils && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Hack to prevent systemd-firstboot failures while setting keymap, this is known
# Debian issue (T_T) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790955
Expand Down
5 changes: 4 additions & 1 deletion examples/orange/snapshotter.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
snapshotter:
type: btrfs
max-snaps: 4
max-snaps: 4
config:
disable-snapper: true
disable-default-subvolume: true
Loading

0 comments on commit 24ea39a

Please sign in to comment.