<mark_weaver>tty_ioctl(4) says: "If this terminal is already the controlling terminal of a different session group then the ioctl fails with EPERM, unless the caller is root (more precisely: has the CAP_SYS_ADMIN capability) and equals 1, in which case the terminal is stolen, and all processes that had it as controlling terminal lose it."
<mark_weaver>do you happen to know off hand how to redirect the serial port within a guest to the qemu console on the host, without -nographic? I want a graphical display for mingetty to run in, but I also want a serial port so I can see the full kernel panic.
<Arne`>The daemon already listens for commands, so one command could be “quit now”.
<mark_weaver>I think it's poor design to duplicate that functionality in every daemon. it can be done just once, in a proper init system, and then there's no needless duplication.
<mark_weaver>all the systems I'm familiar with have something like that.
<mark_weaver>debian, ubuntu, fedora, and more generally systemd and upstart, all have it.
<Arne`>Gentoo also has it, but that means that I have to replicate the functionality in every distro I use.
<Arne`>One key advantage of using Guix is for me, that I can create a kind of personal-overlay which I can take with me when I should have to switch distros.
<Arne`>Or to give it to colleagues without having to find out how to do it in their distro.
<mark_weaver>one problem with implementing a "quit now" command in the daemon is that unprivileged users would be able to shut down the system build daemon, leading to denial of service for the other users.
<Arne`>I’ve long been searching for a way to install something in all possible distros.
<mark_weaver>I modified the 'boot' script to fork before exec'ing mingetty, and for the parent (PID 1) to wait for mingetty to finish.
<mark_weaver>after mingetty crashes, Guile crashes while trying to print a backtrace, with: "Exception thrown while printing backtrace: ERROR: In procedure module-lookup: Unbound variable: frame-arguments"
<mark_weaver>oh, nevermind, I see that the Guix linux-initrd code already forks.
<Arne`>mark_weaver: I now have clean local.d/guix-daemon.start/*stop scripts for Gentoo. Where can I post them?
<mark_weaver>Arne`: I don't know, maybe firstname.lastname@example.org? I'm only marginally involved with Guix, so I'm not the best person to ask such questions.
<mark_weaver>though it seems to me that the one person who really needs to see it is whoever creates a Gentoo ebuild for Guix.
<mark_weaver>civodul: I'm having trouble mounting the SMB share. I passed "-net user,smb=/nix" to qemu. Within qemu, I did (configure-qemu-networking) and (mkdir "/root/host-nix") and (mount-qemu-smb-share "/qemu" "/root/host-nix"), and I get: "ERROR: In procedure mount: No such device". Any ideas?
<mark_weaver>oh, I just realized I wasn't running the qemu from Guix, but rather the one from debian.. maybe that's the problem. let me try.
<mark_weaver>I passed "-net user,smb=/nix" to qemu. Within qemu, I did (configure-qemu-networking) and (mkdir "/root/host-nix") and (mount-qemu-smb-share "/qemu" "/root/host-nix"), and I get: "ERROR: In procedure mount: No such device". Any ideas?
<mark_weaver>(I used the same qemu command line you recommended above, using qemu-system-x86_64 from Guix)
<mark_weaver>this time, it said: "CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3" and "CIFS VFS: cifs_mount failed w/return code = -6".
<mark_weaver>well, I was using qemu-with-multiple-smb-shares, so I tried to mount both /store and /xchg. they both failed.