unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Adding new entry to GRUB for another OS on the third drive and turning system back to work?
@ 2020-12-04 18:09 znavko--- via
  2020-12-04 22:56 ` znavko
  0 siblings, 1 reply; 3+ messages in thread
From: znavko--- via @ 2020-12-04 18:09 UTC (permalink / raw)
  To: help-guix

Hello, Guix help!
Please, look through my short booyloader configuration, will it break my system?
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
 (bootloader
 (bootloader-configuration (bootloader grub-efi-bootloader)
 (target "/boot/efi")
 (menu-entries (menu-entry
 (label "Ubuntu")
 (linux "(hd2,gpt3)/boot/vmlinuz")
 (linux-arguments '("root=/dev/sdc3"))
 (initrd "(hd2,gpt3)/boot/initrd.img")))))
 (file-systems (cons*
 (file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
 (file-system (device "/dev/sda2") (mount-point "/") (type "ext4"))
 %base-file-systems))
...
I just learned how to use GRUB for booting to another OS placed on another SSD in my PC.
And now I want to add another OS to GRUB's configuration, that is holding by Guix.

Could you say, is this config workable?

And also if something goes wrong in my experiments, how to get back to previous workable Grub configuration?
Can I do it with Guix usb stick? Which steps to do for reconfigure my system and "cow-store" from usb stick?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adding new entry to GRUB for another OS on the third drive and turning system back to work?
  2020-12-04 18:09 Adding new entry to GRUB for another OS on the third drive and turning system back to work? znavko--- via
@ 2020-12-04 22:56 ` znavko
  2020-12-04 23:14   ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 3+ messages in thread
From: znavko @ 2020-12-04 22:56 UTC (permalink / raw)
  To: znavko--- via

[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]

Hello! I got the workable config and placed it here
https://gitgud.io/znavko/guix-configs/-/blob/master/guix-config-dual-boot.scm
and in attach too.

This works!

PS: But the kernel bug rest on my Guix: when switch off PC it stops displaying me CPU registers (attach 2)
I will try to update may be I will have luck.


December 4, 2020 8:48 PM, "znavko--- via" <help-guix@gnu.org> wrote:

> Hello, Guix help!
> Please, look through my short booyloader configuration, will it break my system?
> (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
> (bootloader
> (bootloader-configuration (bootloader grub-efi-bootloader)
> (target "/boot/efi")
> (menu-entries (menu-entry
> (label "Ubuntu")
> (linux "(hd2,gpt3)/boot/vmlinuz")
> (linux-arguments '("root=/dev/sdc3"))
> (initrd "(hd2,gpt3)/boot/initrd.img")))))
> (file-systems (cons*
> (file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
> (file-system (device "/dev/sda2") (mount-point "/") (type "ext4"))
> %base-file-systems))
> ...
> I just learned how to use GRUB for booting to another OS placed on another SSD in my PC.
> And now I want to add another OS to GRUB's configuration, that is holding by Guix.
> 
> Could you say, is this config workable?
> 
> And also if something goes wrong in my experiments, how to get back to previous workable Grub
> configuration?
> Can I do it with Guix usb stick? Which steps to do for reconfigure my system and "cow-store" from
> usb stick?

[-- Attachment #2: guix-config-dual-boot.scm --]
[-- Type: application/octet-stream, Size: 3101 bytes --]

; -*- mode: Scheme; -*-
;;this is znavko's Dual Boot config
;; for lightweight xfce4 desktop
;; with the second OS in GRUB on the separate SSD /dev/sdc3 ( grub: (hd2,gpt3) )
;; without networkmanager but wpa_supplicant + dhcp-client instead
;; disabling pc-speaker

(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-efi-bootloader)
							(target "/boot/efi")
							(menu-entries (list (menu-entry
									     (label "Ubuntu")
									     (linux "(hd2,gpt3)/boot/vmlinuz")
									     (linux-arguments '("root=/dev/sdc3"))
									     (initrd "(hd2,gpt3)/boot/initrd.img"))))))
		  
		  (file-systems (cons* 
					(file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
					(file-system (device "/dev/sda2") (mount-point "/") (type "ext4")) 
					;;(file-system (device "/dev/sdb1") (mount-point "/home/bob/disk") (type "ext4"))
				%base-file-systems))

		  (swap-devices '("/dev/sda3"))

		  (users (cons* (user-account (name "bob") (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)
			     (service slim-service-type)

			     (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 "wlp0s20f0u1")
							    (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

			      )	;;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, blacklist
		  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth"))

		  ) ;;end of operating-system

[-- Attachment #3: photo5336907176846930170.jpg --]
[-- Type: image/jpeg, Size: 263346 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adding new entry to GRUB for another OS on the third drive and turning system back to work?
  2020-12-04 22:56 ` znavko
@ 2020-12-04 23:14   ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-12-04 23:14 UTC (permalink / raw)
  To: znavko; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

znavko@disroot.org 写道:
> PS: But the kernel bug rest on my Guix: when switch off PC it 
> stops displaying me CPU registers (attach 2)
> I will try to update may be I will have luck.

You will.

Linux 5.9.11 added a bug that crashes on shutdown on UEFI systems. 
It's gone again in 5.9.12.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-04 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 18:09 Adding new entry to GRUB for another OS on the third drive and turning system back to work? znavko--- via
2020-12-04 22:56 ` znavko
2020-12-04 23:14   ` Tobias Geerinckx-Rice

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).