[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix system image fails with: service 'swap-/swapfile' requires 'fil
From: |
Martin Castillo |
Subject: |
Re: guix system image fails with: service 'swap-/swapfile' requires 'file-system-/' |
Date: |
Tue, 14 Mar 2023 13:01:46 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Hi,
Am 07.03.23 um 16:50 schrieb Ludovic Courtès:
Hi Martin,
Sorry for the late reply.
Martin Castillo <castilma@uni-bremen.de> skribis:
[...]
/mnt/root/man.config.scm:35:14: warning: the 'target' field is
deprecated, please use 'targets' instead
guix system: warning: Consider running 'guix pull' followed by
'guix system reconfigure' to get up-to-date packages and security updates.
guix system: error: service 'swap-/swapfile' requires 'file-system-/',
which is not provided by any service
I can't find anything regarding a file-system-/ service. I do have a
rootpartition in 'file-systems'. Why is that not sufficient?
You can definitely omit the ‘dependencies’ field of ‘swap-space’: it’s
implicit that the root file system is already mounted by the time swap
is activated.
What is the error message then about?
If I remove the dependency in swap-devices, it builds, though the
system gets stuck on boot shortly after generating ssh keys. Picture
is attached. Any hints for that problem?
How did you test? With ‘guix system vm’?
I started the image with
qemu-system-x86_64 -drive
media=disk,file=dk1cc2q05zcw6rbc8l8vm7d6zb9rw771-image.qcow2 -m 1.5G
-bios /usr/share/ovmf/x64/OVMF.fd -smp 3 -nic
user,model=virtio-net-pci,hostfwd=tcp::2224-:22 -enable-kvm
After changing the resolution of the console, it does not continue the
boot process.
The OS config you provided is truncated, so we can’t test it :-), but if
you provide the full thing we can give it a try.
Somehow I missed the last closing braces.
I used
guix 73b5c95
Repository-URL: https://git.savannah.gnu.org/git/guix.git
Branch: master
Commit: 73b5c955ae46af2548625fe31afe60193fb83e2a
to run
$ guix system image -t qcow2 min.swap.scm
/gnu/store/dk1cc2q05zcw6rbc8l8vm7d6zb9rw771-image.qcow2
Martin
min.swap.scm
Description: Text Data