bootc-dev / bootc-dev/bootc

soft-reboot --apply get stuck if reboot fails to exec

Open
#1,620 4 comments 0 reactions 0 assignees View on GitHub
area/system-reinstall-bootc triaged
Dominant language
Rust
Stars
2.3k
Forks
230
Avg merge
3d 12h
Merged PRs (30d)
38

Description

I'm not pretty sure if bootc-destructive-cleanup.service blocks the soft-reboot --apply happens, but both services are failed.
```
Last login: Wed Sep 17 16:02:43 2025 from 192.168.122.1
[systemd]
Failed Units: 2
bootc-destructive-cleanup.service
run-p1601-i1901.service
[root@RHEL ~]# systemctl status bootc-destructive-cleanup.service
× bootc-destructive-cleanup.service - Cleanup previous the installation after an alongside installation
Loaded: loaded (/usr/lib/systemd/system/bootc-destructive-cleanup.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2025-09-17 16:03:45 UTC; 2min 44s ago
Invocation: e497b9e66334478abea7e2ec87fa72ad
Docs: man:bootc(8)
Process: 827 ExecStart=/usr/lib/bootc/fedora-bootc-destructive-cleanup (code=exited, status=123)
Main PID: 827 (code=exited, status=123)
Mem peak: 375.4M
CPU: 1min 5.483s

Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/subgid saved as /etc/subgid.rpmsave
Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/shadow saved as /etc/shadow.rpmsave
Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/passwd saved as /etc/passwd.rpmsave
Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/hosts saved as /etc/hosts.rpmsave
Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/gshadow saved as /etc/gshadow.rpmsave
Sep 17 16:03:45 RHEL fedora-bootc-destructive-cleanup[1043]: warning: /etc/group saved as /etc/group.rpmsave
Sep 17 16:03:45 RHEL systemd[1]: bootc-destructive-cleanup.service: Main process exited, code=exited, status=123/n/a
Sep 17 16:03:45 RHEL systemd[1]: bootc-destructive-cleanup.service: Failed with result 'exit-code'.
Sep 17 16:03:45 RHEL systemd[1]: Failed to start bootc-destructive-cleanup.service - Cleanup previous the installation after an alongside installation.
Sep 17 16:03:45 RHEL systemd[1]: bootc-destructive-cleanup.service: Consumed 1min 5.483s CPU time, 375.4M memory peak.
[root@RHEL ~]# systemctl status run-p1601-i1901.service
× run-p1601-i1901.service - [systemd-run] /usr/bin/systemctl reboot "--message=Initiated by bootc"
Loaded: loaded (/run/systemd/transient/run-p1601-i1901.service; transient)
Transient: yes
Active: failed (Result: exit-code) since Wed 2025-09-17 16:03:33 UTC; 3min 19s ago
Duration: 56ms
Invocation: b2debc71c72e406486fe36935e1c6891
Process: 1603 ExecStart=/usr/bin/systemctl reboot --message=Initiated by bootc (code=exited, status=1/FAILURE)
Main PID: 1603 (code=exited, status=1/FAILURE)
Mem peak: 1.4M
CPU: 8ms

Sep 17 16:03:33 RHEL systemd[1]: Started run-p1601-i1901.service - [systemd-run] /usr/bin/systemctl reboot "--message=Initiated by bootc".
Sep 17 16:03:33 RHEL systemctl[1603]: Call to Reboot failed: Access denied
Sep 17 16:03:33 RHEL systemd[1]: run-p1601-i1901.service: Main process exited, code=exited, status=1/FAILURE
Sep 17 16:03:33 RHEL systemd[1]: run-p1601-i1901.service: Failed with result 'exit-code'.
[root@RHEL ~]#

```
bootc switch --soft-reboot=required --apply will get stuck here
```
# bootc switch --soft-reboot=required --apply
layers already present: 66; layers needed: 2 (14.4 MB)
Fetched layers: 13.69 MiB in 1 second (9.42 MiB/s)
Deploying: done (4 seconds)
Queued for next boot: quay.io/wshi/centos-bootc:arm64
Version: 10
Digest: sha256:931e57f8012f687acfa158034d5ceff2e2ef84fc675b5028b93bcfb43a38c16e
Staged deployment is soft-reboot capable, preparing for soft-reboot...

```
After a manual reboot, system reboot successfully to the target bootc image, but the failed systemd services remain there
```
[systemd]
Failed Units: 2
bootc-destructive-cleanup.service
run-p1601-i1901.service
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.