apt extension for timeshift kicking some strange messages #7

Closed
opened 2026-05-31 23:15:57 +00:00 by jfabernathy · 2 comments
jfabernathy commented 2026-05-31 23:15:57 +00:00 (Migrated from codeberg.org)

I've noticed some different messages when I do apt install in my butterknife 2.28 install versus one from last week.
Not sure if this is creating a problem because the snapshots are getting done, but ...

old version of /etc/apt/apt.conf.d/80timeshift-snapshot

// Take a Timeshift BTRFS snapshot before package changes (silent — no desktop notifications)
DPkg::Pre-Invoke {"env -u DISPLAY -u WAYLAND_DISPLAY -u DBUS_SESSION_BUS_ADDRESS /usr/bin/timeshift --btrfs --create --comments 'Before apt' --scripted || true";};

new version of 80timeshift-snapshot

DPkg::Pre-Invoke {"DISPLAY= DBUS_SESSION_BUS_ADDRESS= /usr/bin/timeshift --create --comments \"pre-apt\" --scripted || true";};
// refresh grub-btrfs snapshot submenu (grub-btrfsd misses scripted snapshots)
DPkg::Post-Invoke {"/etc/grub.d/41_snapshots-btrfs || true";};

Here is some console output from a simple install of a game. Note bash output at end:

sudo apt install gnome-mahjongg
Installing:                     
  gnome-mahjongg

Installing dependencies:
  libadwaita-1-0

Summary:
  Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
  Download size: 3,599 kB
  Space needed: 7,331 kB / 491 GB available

Continue? [Y/n] 
Get:1 http://deb.debian.org/debian trixie/main amd64 libadwaita-1-0 amd64 1.7.6-1~deb13u1 [528 kB]
Get:2 http://deb.debian.org/debian trixie/main amd64 gnome-mahjongg amd64 1:48.1-2+b1 [3,071 kB]
Fetched 3,599 kB in 1s (3,486 kB/s)       
Using system disk as snapshot device for creating snapshots in BTRFS mode
Mounted '/dev/nvme0n1p2' at '/run/timeshift/4752/backup'
btrfs: Quotas are not enabled
Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/4752/backup
Created directory: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26
Created subvolume snapshot: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/@
Created subvolume snapshot: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/@home
Created control file: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2026-05-31_19-12-26': ondemand
------------------------------------------------------------------------------
Selecting previously unselected package libadwaita-1-0:amd64.
(Reading database ... 207436 files and directories currently installed.)
Preparing to unpack .../libadwaita-1-0_1.7.6-1~deb13u1_amd64.deb ...
Unpacking libadwaita-1-0:amd64 (1.7.6-1~deb13u1) ...
Selecting previously unselected package gnome-mahjongg.
Preparing to unpack .../gnome-mahjongg_1%3a48.1-2+b1_amd64.deb ...
Unpacking gnome-mahjongg (1:48.1-2+b1) ...
Setting up libadwaita-1-0:amd64 (1.7.6-1~deb13u1) ...
Setting up gnome-mahjongg (1:48.1-2+b1) ...
Processing triggers for libglib2.0-0t64:amd64 (2.84.4-3~deb13u3) ...
Processing triggers for mailcap (3.74) ...
Processing triggers for hicolor-icon-theme (0.18-2) ...
Processing triggers for libc-bin (2.41-12+deb13u3) ...
Processing triggers for man-db (2.13.1-1) ...
Detecting snapshots ...
Found snapshot: 2026-05-31 19:12:26 | timeshift-btrfs/snapshots/2026-05-31_19-12-26/@ | ondemand | pre-apt --scripted |
Found snapshot: 2026-05-31 19:03:32 | timeshift-btrfs/snapshots/2026-05-31_19-03-32/@ | ondemand | after system setup |
if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
echo ""
else
submenu 'Debian GNU/Linux snapshots' {
    configfile "${prefix}/grub-btrfs.cfg"
}
fi
Found 2 snapshot(s)
Unmount /tmp/grub-btrfs.qQC6VFqffx .. Success
jim@butterbian:~$ 
I've noticed some different messages when I do apt install in my butterknife 2.28 install versus one from last week. Not sure if this is creating a problem because the snapshots are getting done, but ... old version of /etc/apt/apt.conf.d/80timeshift-snapshot ``` // Take a Timeshift BTRFS snapshot before package changes (silent — no desktop notifications) DPkg::Pre-Invoke {"env -u DISPLAY -u WAYLAND_DISPLAY -u DBUS_SESSION_BUS_ADDRESS /usr/bin/timeshift --btrfs --create --comments 'Before apt' --scripted || true";}; ``` new version of 80timeshift-snapshot ``` DPkg::Pre-Invoke {"DISPLAY= DBUS_SESSION_BUS_ADDRESS= /usr/bin/timeshift --create --comments \"pre-apt\" --scripted || true";}; // refresh grub-btrfs snapshot submenu (grub-btrfsd misses scripted snapshots) DPkg::Post-Invoke {"/etc/grub.d/41_snapshots-btrfs || true";}; ``` Here is some console output from a simple install of a game. Note bash output at end: ``` sudo apt install gnome-mahjongg Installing: gnome-mahjongg Installing dependencies: libadwaita-1-0 Summary: Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0 Download size: 3,599 kB Space needed: 7,331 kB / 491 GB available Continue? [Y/n] Get:1 http://deb.debian.org/debian trixie/main amd64 libadwaita-1-0 amd64 1.7.6-1~deb13u1 [528 kB] Get:2 http://deb.debian.org/debian trixie/main amd64 gnome-mahjongg amd64 1:48.1-2+b1 [3,071 kB] Fetched 3,599 kB in 1s (3,486 kB/s) Using system disk as snapshot device for creating snapshots in BTRFS mode Mounted '/dev/nvme0n1p2' at '/run/timeshift/4752/backup' btrfs: Quotas are not enabled Creating new backup...(BTRFS) Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/4752/backup Created directory: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26 Created subvolume snapshot: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/@ Created subvolume snapshot: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/@home Created control file: /run/timeshift/4752/backup/timeshift-btrfs/snapshots/2026-05-31_19-12-26/info.json BTRFS Snapshot saved successfully (0s) Tagged snapshot '2026-05-31_19-12-26': ondemand ------------------------------------------------------------------------------ Selecting previously unselected package libadwaita-1-0:amd64. (Reading database ... 207436 files and directories currently installed.) Preparing to unpack .../libadwaita-1-0_1.7.6-1~deb13u1_amd64.deb ... Unpacking libadwaita-1-0:amd64 (1.7.6-1~deb13u1) ... Selecting previously unselected package gnome-mahjongg. Preparing to unpack .../gnome-mahjongg_1%3a48.1-2+b1_amd64.deb ... Unpacking gnome-mahjongg (1:48.1-2+b1) ... Setting up libadwaita-1-0:amd64 (1.7.6-1~deb13u1) ... Setting up gnome-mahjongg (1:48.1-2+b1) ... Processing triggers for libglib2.0-0t64:amd64 (2.84.4-3~deb13u3) ... Processing triggers for mailcap (3.74) ... Processing triggers for hicolor-icon-theme (0.18-2) ... Processing triggers for libc-bin (2.41-12+deb13u3) ... Processing triggers for man-db (2.13.1-1) ... Detecting snapshots ... Found snapshot: 2026-05-31 19:12:26 | timeshift-btrfs/snapshots/2026-05-31_19-12-26/@ | ondemand | pre-apt --scripted | Found snapshot: 2026-05-31 19:03:32 | timeshift-btrfs/snapshots/2026-05-31_19-03-32/@ | ondemand | after system setup | if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then echo "" else submenu 'Debian GNU/Linux snapshots' { configfile "${prefix}/grub-btrfs.cfg" } fi Found 2 snapshot(s) Unmount /tmp/grub-btrfs.qQC6VFqffx .. Success jim@butterbian:~$ ```
justaguylinux commented 2026-06-01 00:55:38 +00:00 (Migrated from codeberg.org)

Good news, nothing's broken. Snapshots are getting made and the GRUB snapshot menu is updating fine, there are no errors in there. It's just gotten chatty.

Quick rundown of the noise:

  • "Quotas are not enabled" is Timeshift poking at btrfs to check snapshot size. I leave that btrfs feature off (it slows things down and we don't need it), so btrfs just says so. Harmless.
  • "Detecting / Found snapshot" and the "Unmount... Success" at the end is the GRUB menu rebuilding itself after the update. To list your snapshots it briefly mounts the drive read-only, looks around, then unmounts and cleans up.

Read-only, so it can't change anything.

Basically it's just narrating its own chores out loud. I told it to do that part quietly instead. Fixed in 0.2.9 (which also fixes #6).

Thanks!

Good news, nothing's broken. Snapshots are getting made and the GRUB snapshot menu is updating fine, there are no errors in there. It's just gotten chatty. Quick rundown of the noise: - "Quotas are not enabled" is Timeshift poking at btrfs to check snapshot size. I leave that btrfs feature off (it slows things down and we don't need it), so btrfs just says so. Harmless. - "Detecting / Found snapshot" and the "Unmount... Success" at the end is the GRUB menu rebuilding itself after the update. To list your snapshots it briefly mounts the drive read-only, looks around, then unmounts and cleans up. Read-only, so it can't change anything. Basically it's just narrating its own chores out loud. I told it to do that part quietly instead. Fixed in 0.2.9 (which also fixes #6). Thanks!
jfabernathy commented 2026-06-01 01:20:20 +00:00 (Migrated from codeberg.org)

just installed with 0.2.9. everything looks good. Still some extra noise when you install an apt package, but like you said. no harm/no foul.

Detecting snapshots ...
Found snapshot: 2026-05-31 21:21:01 | timeshift-btrfs/snapshots/2026-05-31_21-21-01/@ | ondemand | pre-apt --scripted |
Found snapshot: 2026-05-31 21:18:48 | timeshift-btrfs/snapshots/2026-05-31_21-18-48/@ | ondemand | pre-apt --scripted |
Found snapshot: 2026-05-31 21:17:57 | timeshift-btrfs/snapshots/2026-05-31_21-17-57/@ | ondemand | after setup        |
Found snapshot: 2026-05-31 21:09:12 | timeshift-btrfs/snapshots/2026-05-31_21-09-12/@ | ondemand | pre-apt --scripted |
if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
echo ""
else
submenu 'Debian GNU/Linux snapshots' {
    configfile "${prefix}/grub-btrfs.cfg"
}
fi
Found 4 snapshot(s)
Unmount /tmp/grub-btrfs.Pqa3gVs2tr .. Success
just installed with 0.2.9. everything looks good. Still some extra noise when you install an apt package, but like you said. no harm/no foul. ``` Detecting snapshots ... Found snapshot: 2026-05-31 21:21:01 | timeshift-btrfs/snapshots/2026-05-31_21-21-01/@ | ondemand | pre-apt --scripted | Found snapshot: 2026-05-31 21:18:48 | timeshift-btrfs/snapshots/2026-05-31_21-18-48/@ | ondemand | pre-apt --scripted | Found snapshot: 2026-05-31 21:17:57 | timeshift-btrfs/snapshots/2026-05-31_21-17-57/@ | ondemand | after setup | Found snapshot: 2026-05-31 21:09:12 | timeshift-btrfs/snapshots/2026-05-31_21-09-12/@ | ondemand | pre-apt --scripted | if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then echo "" else submenu 'Debian GNU/Linux snapshots' { configfile "${prefix}/grub-btrfs.cfg" } fi Found 4 snapshot(s) Unmount /tmp/grub-btrfs.Pqa3gVs2tr .. Success ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
drew/butterknife#7
No description provided.