Skip to content

Commit

Permalink
Merge branch 'etc'
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Mar 22, 2024
2 parents a68d652 + bd3be91 commit 7f46f86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __frzr-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,18 @@ main() {
else
echo "System image ${NAME} will use an /etc subvolume"

# unlock the subvolume to be able to create a nested subvolume
btrfs property set -f -ts "${SUBVOL}/" ro false

# create the nested subvolume for /etc
btrfs subvolume create "${SUBVOL}/etc"

# create the nested subvolume for /snapshots
btrfs subvolume create "${SUBVOL}/snapshots"

# re-lock the subvolume. ${SUBVOL}/etc will remain R/W
btrfs property set -f -ts "${SUBVOL}/" ro true

btrfs subvolume create "${SUBVOL}/snapshots/etc"

# copy every stock /etc (that has been moved to /usr/etc) file to the actual /etc
Expand Down

0 comments on commit 7f46f86

Please sign in to comment.