-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storaged: Move /var/lib/cockpit/btrfs to /run
This shouldn't be on persistent storage -- after a reboot all the mounts are gone, so the database should not survive that either. Use `os.path.join()` for a slightly more regular and cleaner path building. Move the database on package upgrades, to not break new cockpit sessions in the current boot.
- Loading branch information
1 parent
7b48ee7
commit 85808c5
Showing
4 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
#DEBHELPER# | ||
|
||
# version 332 moved the btrfs temp mounts db to /run | ||
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl 322 && | ||
[ -d /var/lib/cockpit/btrfs ] && [ ! -e /run/cockpit/btrfs ]; then | ||
mkdir -p /run/cockpit | ||
mv /var/lib/cockpit/btrfs /run/cockpit || true | ||
fi |