[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error in bootloader config while system init
From: |
Giovanni Biscuolo |
Subject: |
Re: error in bootloader config while system init |
Date: |
Tue, 21 May 2019 10:53:26 +0200 |
Hi znavko,
cannot help now, just a quick reply to inline error log and config for
ml archiving purposes
address@hidden writes:
> Hello! I want to install guix, but have troubles with bootloader
> configuration. I parted my disk this way:
>
> # fdisk -l /dev/sdb
>
> Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 sectors Units:
> sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes /
> 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type:
> gpt Disk identifier: 3E7A5583-EC16-4444-BD05-F488879F5F8 Device Start End
> Sectors Size Type /dev/sdb1 2048 104859647 104857600 50G Linux filesystem
> /dev/sdb2 104859648 125045390 20185743 9.6G Linux swap
> # guix system init /mnt/etc/config.scm /mnt 2>err
> # cat err | nc termbin.com 9999
> https://termbin.com/r3oh
this is the output
--8<---------------cut here---------------start------------->8---
Backtrace:
13 (apply-smob/1 #<catch-closure eee8e0>)
In ice-9/boot-9.scm:
705:2 12 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 11 (_ #(#(#<directory (guile-user) f70140>)))
In guix/ui.scm:
1747:12 10 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9 9 (catch _ _ #<procedure 7f5bb7621910 at guix/ui.scm:703…> …)
829:9 8 (catch _ _ #<procedure 7f5bb7621928 at guix/ui.scm:826…> …)
In guix/scripts/system.scm:
1325:8 7 (_)
In guix/status.scm:
768:4 6 (call-with-status-report _ _)
In guix/scripts/system.scm:
1181:4 5 (process-action _ _ _)
In guix/store.scm:
623:10 4 (call-with-store _)
1794:24 3 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
1197:13 2 (_ _)
867:9 1 (perform-action init #<<operating-system> kernel: #<pa…> …)
In gnu/system.scm:
974:26 0 (operating-system-bootcfg #<<operating-system> kernel:…> …)
gnu/system.scm:974:26: In procedure operating-system-bootcfg:
In procedure struct_vtable: Wrong type argument in position 1 (expecting
struct): #f
--8<---------------cut here---------------end--------------->8---
> # cat /mnt/etc/config.scm | nc termbin.com 9999
> https://termbin.com/r5rq
> Please, what is wrong?
this is the config
--8<---------------cut here---------------start------------->8---
;-*- mode: Scheme; -*-
;;this is znavko's cute config
;; for lightweight xfce4 desktop
;; without networkmanager but wpa_supplicant + dhcp-client instead
;; notebok settings: disabling sleep on closing lid
;; disabling pc-speaker, lenovo wifi blocking solution
;; enabling touchpad tapping
(use-modules (gnu) (gnu system nss)
(gnu system locale) ;;for locale-definition
(gnu services desktop)
(srfi srfi-1) ;;for remove function
(gnu services networking) ;;for remove ntp
(gnu services avahi) ;;for remove avahi
(gnu services xorg)
(gnu packages admin) ;;for wpa_supplicant
)
(use-service-modules desktop)
(use-package-modules certs gnome)
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale
"en_US.utf8")
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sdb")))
(file-systems (cons (file-system (device "/dev/sdb1")
(mount-point "/mnt") (type "ext4")) %base-file-systems))
(swap-devices '("/dev/sdb2"))
(users (cons* (user-account (name "bon") (group "users")
(supplementary-groups '("wheel"
"netdev" "audio" "video"))
(home-directory "/home/bob"))
(user-account (name "mom") (group "users")
(supplementary-groups '("wheel"
"netdev" "audio" "video"))
(home-directory "/home/mom"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
wpa-supplicant
%base-packages))
(services (cons*
;; xfce4 desktop, dhcp-client, slim
(service xfce-desktop-service-type)
(service dhcp-client-service-type)
;; slim config for enabling touchpad tap
(service slim-service-type
(slim-configuration
(xorg-configuration
(xorg-configuration
(extra-config
'("Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection")
))))
)
(modify-services
;; removing unnecessary services
(remove (lambda (service)
(member (service-kind service)
(list ntp-service-type
avahi-service-type
bluetooth-service
network-manager-service-type
gdm-service-type)))
%desktop-services) ;end of remove lambda
services
;; wpa_supplicant + dhcp-client (above) instead
of networkmanager
(wpa-supplicant-service-type config =>
(wpa-supplicant-configuration
(interface "wlp2s0")
(config-file
"/etc/wpa_supplicant/wpa_supplicant.conf")))
;; disabling sleep on closing notebook lid
(elogind-service-type
c => (elogind-configuration (handle-lid-switch
'ignore)))
) ;;end of modify-services
)) ;;end of services
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)
;;blacklist ugly sound speaker
(kernel-arguments
'("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth"))
) ;;end of operating-system
--8<---------------cut here---------------end--------------->8---
--
Giovanni Biscuolo
Xelera IT Infrastructures
signature.asc
Description: PGP signature