* guix system image fails with: service 'swap-/swapfile' requires 'file-system-/'
@ 2023-02-21 15:51 Martin Castillo
2023-03-07 15:50 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Martin Castillo @ 2023-02-21 15:51 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 2812 bytes --]
Hi,
I'm testing guix system image with the attachend config, and I get
this error:
/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?
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?
Martin
(use-modules (gnu))
(use-service-modules desktop networking ssh xorg)
(operating-system
(locale "de_DE.utf8")
(timezone "Europe/Berlin")
(keyboard-layout (keyboard-layout "de" "neo"))
(host-name "minswap")
(issue "minimal system with swap, swap dependencies")
(users (cons* (user-account
(name "mcd")
(comment "Martin")
(group "users")
(home-directory "/home/mcd")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service dhcp-client-service-type)
(service openssh-service-type)
)
%base-services))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/efi") ; deprecated
(keyboard-layout keyboard-layout)))
(mapped-devices
(list (mapped-device
(source (uuid "e35658c9-6e31-431a-9397-2e988e32fe63"))
(target "lukspart")
(type luks-device-mapping))
(mapped-device
(source "lvmSystem")
(target "lvmSystem-volRoot")
(type lvm-device-mapping))))
(file-systems
(cons* (file-system
(mount-point "/efi")
(device (uuid "845E-533F" 'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device ; mapped device name: lvmSystem-volRoot, FS-label
is guixsd-root
(uuid "0584a348-341b-475d-b19f-93b5567ee02b"
'ext4))
(type "ext4")
(needed-for-boot? #t)
(dependencies mapped-devices))
%base-file-systems))
(swap-devices
(list
(swap-space
(target "/swapfile")
(dependencies (filter
(file-system-mount-point-predicate "/")
file-systems)))))
(kernel-arguments
(cons* "resume=/swapfile"
%default-kernel-arguments
[-- Attachment #2: encrypted_root-swap-nodep_boot-stuck.png --]
[-- Type: image/png, Size: 10555 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guix system image fails with: service 'swap-/swapfile' requires 'file-system-/'
2023-02-21 15:51 guix system image fails with: service 'swap-/swapfile' requires 'file-system-/' Martin Castillo
@ 2023-03-07 15:50 ` Ludovic Courtès
2023-03-14 12:01 ` Martin Castillo
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-03-07 15:50 UTC (permalink / raw)
To: Martin Castillo; +Cc: help-guix
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.
> 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’?
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.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: guix system image fails with: service 'swap-/swapfile' requires 'file-system-/'
2023-03-07 15:50 ` Ludovic Courtès
@ 2023-03-14 12:01 ` Martin Castillo
0 siblings, 0 replies; 3+ messages in thread
From: Martin Castillo @ 2023-03-14 12:01 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]
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
[-- Attachment #2: min.swap.scm --]
[-- Type: text/x-scheme, Size: 2018 bytes --]
;; This is an operating system configuration generated
;; by the graphical installer.
(use-modules (gnu))
(use-service-modules desktop networking ssh xorg)
(operating-system
(locale "de_DE.utf8")
(timezone "Europe/Berlin")
(keyboard-layout (keyboard-layout "de" "neo"))
(host-name "minswap")
(issue "minimal system with swap, without swap dependencies")
(users (cons* (user-account
(name "mcd")
(comment "Martin")
(group "users")
(home-directory "/home/mcd")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "nss-certs"))
%base-packages))
(services
(append
(list (service dhcp-client-service-type)
(service openssh-service-type)
)
%base-services))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/efi") ; deprecated
(keyboard-layout keyboard-layout)))
(mapped-devices
(list (mapped-device
(source (uuid "e35658c9-6e31-431a-9397-2e988e32fe63"))
(target "lukspart")
(type luks-device-mapping))
(mapped-device
(source "lvmSystem")
(target "lvmSystem-volRoot")
(type lvm-device-mapping))))
(file-systems
(cons* (file-system
(mount-point "/efi")
(device (uuid "845E-533F" 'fat32))
(type "vfat"))
(file-system
(mount-point "/")
(device ; mapped device name: lvmSystem-volRoot, FS-label is guixsd-root
(uuid "0584a348-341b-475d-b19f-93b5567ee02b"
'ext4))
(type "ext4")
(needed-for-boot? #t)
(dependencies mapped-devices))
%base-file-systems))
(swap-devices
(list
(swap-space
(target "/swapfile"))))
(kernel-arguments
(cons* "resume=/swapfile"
%default-kernel-arguments)))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-14 12:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 15:51 guix system image fails with: service 'swap-/swapfile' requires 'file-system-/' Martin Castillo
2023-03-07 15:50 ` Ludovic Courtès
2023-03-14 12:01 ` Martin Castillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).