unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30589: serial login not working
@ 2018-02-24  2:19 George myglc2 Clemmer
  2018-03-08  1:26 ` myglc2
  0 siblings, 1 reply; 5+ messages in thread
From: George myglc2 Clemmer @ 2018-02-24  2:19 UTC (permalink / raw)
  To: 30589

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

The recent move of agetty-service into #base-services caused serial
login to stop working here. Previously this worked ...

(agetty-service (agetty-configuration (tty "ttyS1")
							(baud-rate "115200")))

First I tried removing the lines above. Then I tried ...

(define %my-services
  (modify-services %base-services
		   (agetty-service-type config =>
					(agetty-configuration
					 (tty "ttyS1")
					 (baud-rate "115200")))))

I can confirm that ...

root@g1 /home/g1# sudo echo 123 > /dev/ttyS1

... produces "123" on the serial line.

guix (GNU Guix) 0.14.0.2487-58246

config attached (my G54)

TIA - George

[-- Attachment #2: sys.scm --]
[-- Type: application/octet-stream, Size: 2358 bytes --]

;;; GuixSD headless server
(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules
 admin
 base                 ; glibc-utf8-locales
 certs
 cups
 disk
 emacs
 freeipmi
 linux                 ; mdadm
 virtualization        ; qemu
 rsync
 screen
 ssh
 version-control       ; git
 wget
 xorg                  ; xauth
 )
(define %my-services
  (modify-services %base-services
		   (agetty-service-type config =>
					(agetty-configuration
					 (tty "ttyS1")
					 (baud-rate "115200")))))
(operating-system
 (host-name "g1")
 (timezone "America/New_York")
 (locale "en_US.utf8")
 (kernel-arguments '("console=ttyS1,115200"))
 ;; RAID1 root : NVMe M.2SSD + 2 HDs
 (bootloader (grub-configuration (target "/dev/nvme0n1")
				 (terminal-outputs '(console))
				 (terminal-inputs '(serial console))
				 (serial-speed 115200)
				 ))
 (initrd (lambda (file-systems . rest) (apply base-initrd file-systems
					      #:extra-modules '("raid1")
					      rest)))
 (mapped-devices (list (mapped-device
			(source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1"))
			(target "/dev/md3")
			(type raid-device-mapping))))
 (file-systems (cons (file-system
		      (title 'device)
		      (device "/dev/md3")
		      (mount-point "/")
		      (type "ext4")
		      (dependencies mapped-devices))
		     %base-file-systems))
 (swap-devices '("/dev/nvme0n1p2" ))
 (users (cons* (user-account (name "g1")
			     (group "users")
			     (supplementary-groups '("wheel" "kvm"))
			     (home-directory (string-append "/home/" name)))
	       (user-account (name "admin")
			     (group "users")
			     (supplementary-groups '("wheel" "kvm"))
			     (home-directory (string-append "/home/" name)))
	       %base-user-accounts))
 (packages (cons*
	    cups
	    emacs-no-x-toolkit
	    emacs-guix
	    emacs-zenburn-theme
	    freeipmi
	    git
	    glibc-utf8-locales
	    gnu-make
	    mdadm
	    magit
	    nss-certs         ;for HTTPS access
	    openssh
	    parted
	    qemu
	    rsync
	    screen
	    smartmontools
	    tree
	    wget
	    xauth
	    %base-packages))
 (services (cons* (static-networking-service
		   "enp3s0" "192.168.1.7"
		   #:gateway "192.168.1.1"
		   #:name-servers '("192.168.1.1" "46.17.102.24"))
		  (ntp-service)
		  (service openssh-service-type (openssh-configuration
						 (x11-forwarding? #t)))
		  %my-services)))

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

* bug#30589: serial login not working
  2018-02-24  2:19 bug#30589: serial login not working George myglc2 Clemmer
@ 2018-03-08  1:26 ` myglc2
  2018-03-08 12:16   ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: myglc2 @ 2018-03-08  1:26 UTC (permalink / raw)
  To: 30589

On 02/23/2018 at 21:19 George myglc2 Clemmer writes:

> The recent move of agetty-service into #base-services caused serial
> login to stop working here.

I can confirm that reverting ...

7e0a6fac0 * services: mingetty: Move tty optionality to agetty.
5a9902c8a * services: agetty: Add agetty instance to base services. Make its tty optional.

... "fixes" the problem here.

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

* bug#30589: serial login not working
  2018-03-08  1:26 ` myglc2
@ 2018-03-08 12:16   ` Danny Milosavljevic
  2018-03-08 14:04     ` George myglc2 Clemmer
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2018-03-08 12:16 UTC (permalink / raw)
  To: myglc2; +Cc: 30589

Yeah, there was a discussion about how the reading of the Linux command line
in shepherd was too early.  I've now changed the agetty service to read it later.

Please try current master now.

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

* bug#30589: serial login not working
  2018-03-08 12:16   ` Danny Milosavljevic
@ 2018-03-08 14:04     ` George myglc2 Clemmer
  2018-03-08 16:59       ` Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: George myglc2 Clemmer @ 2018-03-08 14:04 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30589


On 03/08/2018 at 12:16 Danny Milosavljevic writes:

> Please try current master now.

Hi Danny, Yes that fixed it here, thanks. - George

guix (GNU Guix) 0.14.0.3087-3e25d

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

* bug#30589: serial login not working
  2018-03-08 14:04     ` George myglc2 Clemmer
@ 2018-03-08 16:59       ` Danny Milosavljevic
  0 siblings, 0 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2018-03-08 16:59 UTC (permalink / raw)
  To: George myglc2 Clemmer; +Cc: 30589-done

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

Hi George,

On Thu, 08 Mar 2018 09:04:24 -0500
George myglc2 Clemmer <myglc2@gmail.com> wrote:

> On 03/08/2018 at 12:16 Danny Milosavljevic writes:
> 
> > Please try current master now.  
> 
> Hi Danny, Yes that fixed it here, thanks. - George

Great!  Thanks for your patience!

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2018-03-08 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-24  2:19 bug#30589: serial login not working George myglc2 Clemmer
2018-03-08  1:26 ` myglc2
2018-03-08 12:16   ` Danny Milosavljevic
2018-03-08 14:04     ` George myglc2 Clemmer
2018-03-08 16:59       ` Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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