Skip to content

Wrong output leaks to terminal when making snaphshots #410

@mzannoni

Description

@mzannoni

When snapshots are automatically made in Majaro update, there is some output appearing in the terminal that doesn't look correct at all:

Removed snapshot: 2026-01-15_21-25-21
------------------------------------------------------------------------------
Detecting snapshots ...
Found snapshot: 2026-01-23 20:28:56 | timeshift-btrfs/snapshots/2026-01-23_20-28-56/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2026-01-19 08:39:29 | timeshift-btrfs/snapshots/2026-01-19_08-39-29/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2026-01-17 22:30:26 | timeshift-btrfs/snapshots/2026-01-17_22-30-26/@ | ondemand | {timeshift-autosnap} {created before upgrade} |
if [ ! -e "${prefix}/grub-btrfs.cfg" ]; then
echo ""
else
submenu 'Manjaro Linux snapshots' {
    configfile "${prefix}/grub-btrfs.cfg"
}
fi
Found 3 snapshot(s)
Unmount /tmp/grub-btrfs.SbgAo6hKI0 .. Success

The above is an example output from one of my latest updates.

This seems to come from:

cat << EOF
if [ ! -e "${grub_btrfs_search_directory}/grub-btrfs.cfg" ]; then
echo ""
else
submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_submenu}{
configfile "${grub_btrfs_search_directory}/grub-btrfs.cfg"
}
fi
EOF

I'd assume this output should be redirected instead?

Discussion already started here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions