moar progress

This commit is contained in:
caem 2025-01-15 00:27:29 +01:00
parent 99605585e1
commit 135236685a
Signed by: caem
GPG key ID: 69A830D03203405F
6 changed files with 83 additions and 55 deletions

View file

@ -3,7 +3,7 @@
{
boot.initrd.postDeviceCommands = lib.mkAfter ''
mkdir /btrfs_tmp
mount ${config.fileSystems."/".device} /btrfs_tmp
mount "${config.fileSystems."/".device}" /btrfs_tmp
if [[ -e /btrfs_tmp/root ]]; then
mkdir -p /btrfs_tmp/old_roots
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/root)" "+%Y-%m-%-d_%H:%M:%S")