Skip to content

Unable to start service grub-btrfs.service when selecting BTRFS and Timeshift #3563

@palanthis

Description

@palanthis

Which ISO version are you using?

archlinux-2025.05.01-x86_64.iso

The installation log

[2025-06-01 03:44:03] - DEBUG - Setting up Btrfs timeshift
[2025-06-01 03:44:03] - INFO - Installing packages: ['cronie']
[2025-06-01 03:44:04] - INFO - Installing packages: ['timeshift']
[2025-06-01 03:44:07] - INFO - Enabling service cronie.service
[2025-06-01 03:44:07] - INFO - Installing packages: ['grub-btrfs']
[2025-06-01 03:44:33] - INFO - Enabling service grub-btrfs.service
[2025-06-01 03:44:33] - ERROR - Unable to start service grub-btrfs.service: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'grub-btrfs.service'] exited with abnormal exit code [1]: 
[2025-06-01 03:44:33] - ERROR - Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 665, in enable_service
    self.arch_chroot(f'systemctl enable {service}')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 680, in arch_chroot
    return self.run_command(cmd)
           ~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 674, in run_command
    return SysCommand(f'arch-chroot {self.target} {cmd}')
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 336, in __init__
    self.create_session()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 376, in create_session
    with SysCommandWorker(
         ~~~~~~~~~~~~~~~~^
    	self.cmd,
     ^^^^^^^^^
    ...<3 lines>...
    	working_directory=self.working_directory,
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as session:
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/general.py", line 194, in __exit__
    raise SysCallError(
    ...<3 lines>...
    )
archinstall.lib.exceptions.SysCallError: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'grub-btrfs.service'] exited with abnormal exit code [1]: 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 103, in run_as_a_module
    rc = main()
  File "/usr/lib/python3.13/site-packages/archinstall/__init__.py", line 93, in main
    importlib.import_module(mod_name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 197, in <module>
    guided()
    ~~~~~~^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 194, in guided
    perform_installation(arch_config_handler.args.mountpoint)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 59, in perform_installation
    with Installer(
         ~~~~~~~~~^
    	mountpoint,
     ^^^^^^^^^^^
    	disk_config,
     ^^^^^^^^^^^^
    	kernels=config.kernels,
     ^^^^^^^^^^^^^^^^^^^^^^^
    ) as installation:
    ^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 140, in __exit__
    raise exc_val
  File "/usr/lib/python3.13/site-packages/archinstall/scripts/guided.py", line 147, in perform_installation
    installation.setup_btrfs_snapshot(snapshot_type, config.bootloader)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 955, in setup_btrfs_snapshot
    self.enable_service('grub-btrfs.service')
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/archinstall/lib/installer.py", line 667, in enable_service
    raise ServiceException(f'Unable to start service {service}: {err}')
archinstall.lib.exceptions.ServiceException: Unable to start service grub-btrfs.service: ['/usr/bin/arch-chroot', '/mnt', 'systemctl', 'enable', 'grub-btrfs.service'] exited with abnormal exit code [1]: 

[2025-06-01 03:44:33] - WARNING - Archinstall experienced the above error. If you think this is a bug, please report it to
https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".

Hint: To extract the log from a live ISO 
curl -F'file=@/var/log/archinstall/install.log' https://0x0.st

describe the problem

Install on a VM in QEMU/KVM.
When selecting BTRFS, default subvolumes, no encryption, GRUB as a bootloader and changing the snapshot manager to TimeShift, this error is encountered. I tried twice, just to be sure.

I ran the test again, but left Snapshot manager to Snapper and it worked fine. (Note: When doing this, I had to manually install btrfs-grub and enable the service after the install was completed). I even tested it more times and did select LUKS encryption. As noted, I had to install btrfs-grub manually, but after doing that, I was able to create snapshops, and boot to them, even when encrypted.v

LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin USER=root HOME=/var/lib/libvirt/qemu/domain--1-ArchTest01 XDG_DATA_HOME=/var/lib/libvirt/qemu/domain--1-ArchTest01/.local/share XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain--1-ArchTest01/.cache XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-ArchTest01/.config /usr/bin/qemu-system-x86_64 -name guest=ArchTest01,debug-threads=on -S -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-ArchTest01/master-key.aes"}' -blockdev '{"driver":"file","filename":"/usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' -blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' -blockdev '{"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/ArchTest01_VARS.fd","node-name":"libvirt-pflash1-storage","read-only":false}' -machine pc-q35-10.0,usb=off,vmport=off,smm=on,dump-guest-core=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-storage,hpet=off,acpi=on -accel kvm -cpu host,migratable=on -global driver=cfi.pflash01,property=secure,value=on -m size=6291456k -object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":6442450944}' -overcommit mem-lock=off -smp 4,sockets=4,cores=1,threads=1 -uuid 9b192212-c9b9-4d9a-b36e-6fed7f5311e0 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain--1-ArchTest01/monitor.sock,server=on,wait=off -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-shutdown -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot menu=on,strict=on -device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' -device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' -device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' -device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' -device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}' -device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}' -device '{"driver":"pcie-root-port","port":22,"chassis":7,"id":"pci.7","bus":"pcie.0","addr":"0x2.0x6"}' -device '{"driver":"pcie-root-port","port":23,"chassis":8,"id":"pci.8","bus":"pcie.0","addr":"0x2.0x7"}' -device '{"driver":"pcie-root-port","port":24,"chassis":9,"id":"pci.9","bus":"pcie.0","multifunction":true,"addr":"0x3"}' -device '{"driver":"pcie-root-port","port":25,"chassis":10,"id":"pci.10","bus":"pcie.0","addr":"0x3.0x1"}' -device '{"driver":"pcie-root-port","port":26,"chassis":11,"id":"pci.11","bus":"pcie.0","addr":"0x3.0x2"}' -device '{"driver":"pcie-root-port","port":27,"chassis":12,"id":"pci.12","bus":"pcie.0","addr":"0x3.0x3"}' -device '{"driver":"pcie-root-port","port":28,"chassis":13,"id":"pci.13","bus":"pcie.0","addr":"0x3.0x4"}' -device '{"driver":"pcie-root-port","port":29,"chassis":14,"id":"pci.14","bus":"pcie.0","addr":"0x3.0x5"}' -device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.2","addr":"0x0"}' -device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.3","addr":"0x0"}' -blockdev '{"driver":"file","filename":"/mnt/VMs/ArchTest01.qcow2","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' -blockdev '{"node-name":"libvirt-2-format","read-only":false,"driver":"qcow2","file":"libvirt-2-storage"}' -device '{"driver":"virtio-blk-pci","bus":"pci.4","addr":"0x0","drive":"libvirt-2-format","id":"virtio-disk0","bootindex":2}' -blockdev '{"driver":"file","filename":"/mnt/Data/ISOs/archlinux-2025.05.31-x86_64.iso","node-name":"libvirt-1-storage","read-only":true}' -device '{"driver":"ide-cd","bus":"ide.0","drive":"libvirt-1-storage","id":"sata0-0-0","bootindex":1}' -netdev '{"type":"tap","fd":"30","vhost":true,"vhostfd":"31","id":"hostnet0"}' -device '{"driver":"virtio-net-pci","netdev":"hostnet0","id":"net0","mac":"52:54:00:7b:61:79","bus":"pci.1","addr":"0x0"}' -chardev pty,id=charserial0 -device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' -chardev socket,id=charchannel0,path=/run/libvirt/qemu/channel/-1-ArchTest01/org.qemu.guest_agent.0,server=on,wait=off -device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' -chardev spicevmc,id=charchannel1,name=vdagent -device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":2,"chardev":"charchannel1","id":"channel1","name":"com.redhat.spice.0"}' -device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' -audiodev '{"id":"audio1","driver":"spice"}' -spice port=5901,addr=127.0.0.1,disable-ticketing=on,image-compression=off,seamless-migration=on -device '{"driver":"virtio-vga","id":"video0","max_outputs":1,"bus":"pcie.0","addr":"0x1"}' -device '{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}' -device '{"driver":"hda-duplex","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}' -global ICH9-LPC.noreboot=off -watchdog-action reset -chardev spicevmc,id=charredir0,name=usbredir -device '{"driver":"usb-redir","chardev":"charredir0","id":"redir0","bus":"usb.0","port":"2"}' -chardev spicevmc,id=charredir1,name=usbredir -device '{"driver":"usb-redir","chardev":"charredir1","id":"redir1","bus":"usb.0","port":"3"}' -device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.5","addr":"0x0"}' -object '{"qom-type":"rng-random","id":"objrng0","filename":"/dev/urandom"}' -device '{"driver":"virtio-rng-pci","rng":"objrng0","id":"rng0","bus":"pci.6","addr":"0x0"}' -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions