Skip to content

Commit ef7e9e1

Browse files
committed
Add Guix debugging information to README
1 parent c0e0b7b commit ef7e9e1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎guix/README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ guix time-machine -C channels-lock.scm -- deploy deployment.scm
5252
# If you wish to sandbox the whole thing in a container:
5353
guix shell --preserve=^SSH_AUTH_SOCK --expose=/etc/guix --expose=$HOME/.ssh --share=$SSH_AUTH_SOCK --container --network --nesting guix nss-certs age sops -- guix time-machine -C channels-lock.scm -- deploy deployment.scm
5454
```
55+
56+
## Troubleshooting
57+
58+
- **Activation service scripts** can be hard to troubleshoot, because errors in
59+
them are not logged. What you can do is run the activation script manually
60+
after deployment using `sudo /run/current-system/activate`, which will run
61+
the activation script in foreground and reveal any issues.
62+
63+
- **Syntax errors** in included files from the `deploy` command are presently
64+
not reported directly - instead, a `%turing-os: undefined variable` is
65+
reported. [This has been reported
66+
upstream](https://codeberg.org/guix/guix/issues/8005). Use `-- system
67+
container machines/turing.scm` on the command line instead of `deploy
68+
deployment.scm` to directly evaluate the machine and receive proper errors.

0 commit comments

Comments
 (0)