Age | Commit message (Expand) | Author |
2014-05-16 | linux-initrd: Factorize kernel command-line option parsing....* guix/build/linux-initrd.scm (find-long-option): New procedure.
(boot-system): Use it instead of the local 'option'.
| Ludovic Courtès |
2014-05-14 | linux-initrd: Make /dev/ttyS0, for debugging....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/ttyS0.
| Ludovic Courtès |
2014-05-14 | system: When unionfs-fuse is used for /, don't kill it when halting....* guix/build/linux-initrd.scm (pidof): New procedure.
(mount-root-file-system)[mark-as-not-killable]: New procedure.
Use it for unionfs when VOLATILE-ROOT?.
* gnu/services/base.scm (%do-not-kill-file): New variable.
(user-processes-service)[stop]: Honor it.
| Ludovic Courtès |
2014-05-10 | services: Add 'file-system-service'....* gnu/services/base.scm (file-system-service): New procedure.
(user-processes-service): Add 'requirements' parameter.
* gnu/services/dmd.scm (dmd-configuration-file): Use (guix build
linux-initrd).
* guix/build/linux-initrd.scm (guix): Export 'check-file-system'.
* gnu/system.scm (file-union): New procedure.
(essential-services): Use it. Add that to the returned list.
| Ludovic Courtès |
2014-05-10 | linux-initrd: Append to /etc/mtab....* guix/build/linux-initrd.scm (mount-file-system): Open /etc/mtab in
append mode.
| Ludovic Courtès |
2014-05-08 | linux-initrd: Don't leak /dev/console file descriptors....* guix/build/linux-initrd.scm (switch-root): Simplify /dev/console
code. This fixes a bug where we would leak the IN and OUT file
descriptors.
| Ludovic Courtès |
2014-05-08 | linux-initrd: Update /etc/mtab....* guix/build/linux-initrd.scm (mount-root-file-system): Populate
/root/etc/mtab.
(mount-file-system): Update ROOT/etc/mtab.
| Ludovic Courtès |
2014-05-06 | linux-initrd: Delete files from the initrd ramfs when switching roots....* guix/build/linux-initrd.scm (switch-root): Delete file from the old
root. Chdir to / after 'chroot' call. Re-open file descriptors 0, 1,
and 2.
(boot-system): Move 'loading' message after the 'switch-root' call.
* gnu/system.scm (operating-system-boot-script): Add loop that closes
file descriptor before calling 'execl'.
| Ludovic Courtès |
2014-05-04 | linux-initrd: Improve root file system switching....* guix/build/linux-initrd.scm (move-essential-file-systems,
switch-root): New procedures.
(MS_MOVE): New variable.
(boot-system): Remove 'mount-essential-file-systems' call for ROOT.
Use 'switch-root' instead of chdir + chroot.
| Ludovic Courtès |
2014-05-04 | linux-initrd: Check the root and other early file systems....* gnu/system.scm (operating-system-derivation)[boot-file-systems]: Keep "/".
* gnu/system/linux-initrd.scm (file-system->spec): Keep the 'check?'
flag.
(qemu-initrd)[helper-packages]: New variable. Pass it as #:to-copy.
<gexp>: Add 'set-path-environment-variable' call. Remove #:unionfs
argument for 'boot-system'.
* gnu/system/vm.scm (%linux-vm-file-systems): Add 'check?' field/
(virtualized-operating-system): Likewise for the "9p" file system.
* guix/build/linux-initrd.scm (mount-root-file-system): Change #:unionfs
default. Call 'check-file-system' before mounting ROOT, when
VOLATILE-ROOT? is false.
(check-file-system): New procedure.
(mount-file-system): Honor 'check?' element in list; add
'check-file-system' call.
(boot-system): Remove #:root-fs-type and #:unionfs parameters.
[root-mount-point?, root-fs-type]: New variables.
Call 'mount-file-system' on all MOUNTS but "/".
| Ludovic Courtès |
2014-05-03 | vm: Make root file system type a parameter, and default to ext4....* gnu/system/vm.scm (qemu-image): Add #:file-system-type parameter.
Pass it to 'initialize-hard-disk'.
* guix/build/linux-initrd.scm (mount-root-file-system): Always honor
TYPE.
(boot-system): Change #:root-fs-type to default to "ext4". Update
docstring.
* guix/build/vm.scm (initialize-hard-disk): Remove #:mkfs parameter; add
#:file-system-type. Adjust 'mkfs' invocation and 'mount' call to
honor #:file-system-type.
| Ludovic Courtès |
2014-05-03 | system: Add first-class file system declarations....* gnu/system.scm (<operating-system>)[initrd]: Default to
'qemu-initrd'.
(<file-system>): New record type.
(operating-system-root-file-system): New procedure.
(operating-system-derivation): Take the device name for GRUB from
'operating-system-root-file-system'. Pass the
'operating-system-initrd' procedure the list of boot file systems.
* gnu/system/linux-initrd.scm (file-system->spec): New procedure.
(qemu-initrd): Add 'file-systems' parameter, and remove #:mounts
parameter.
[file-system-type-predicate]: New procedure.
[linux-modules]: Use it.
Adjust #:mounts argument in 'boot-system' call.
(gnu-system-initrd): Remove.
* gnu/system/vm.scm (%linux-vm-file-systems): New variable.
(expression->derivation-in-linux-vm): Adjust call to 'qemu-initrd'.
(virtualized-operating-system): New procedure.
(system-qemu-image/shared-store-script)[initrd]: Remove. Use
'virtualized-operating-system'. Get the 'initrd' file from OS-DRV.
* guix/build/linux-initrd.scm (mount-qemu-smb-share, mount-qemu-9p):
Remove.
(MS_RDONLY, MS_BIND): New global variables.
(bind-mount): Remove local 'MS_BIND' definition.
(mount-root-file-system): New procedure, with code formerly in
'boot-system'.
(mount-file-system): New procedure.
(boot-system): Add #:root-fs-type parameter. Remove 'MS_RDONLY' local
variable. Use 'mount-root-file-system' and 'mount-file-system'.
* doc/guix.texi (Using the Configuration System): Add 'file-system'
declaration.
| Ludovic Courtès |
2014-04-30 | linux-initrd: Allow setuid binaries from the unionfs to run....* guix/build/linux-initrd.scm (boot-system): Pass the 'suid' option to
UNIONFS.
| Ludovic Courtès |
2014-04-14 | linux-initrd: Mount / as a unionfs when asking for a volatile root....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/fuse.
(boot-system): Add #:unionfs parameter. Invoke UNIONFS instead of
copying files over when VOLATILE-ROOT? is true.
* gnu/system/linux-initrd.scm (expression->initrd): Add #:inputs
parameter.
[files-to-copy]: New procedure.
[builder]: Add 'to-copy' parameter; honor it.
(qemu-initrd)[linux-modules]: Add 'fuse.ko' when VOLATILE-ROOT?.
Pass UNIONFS-FUSE/STATIC as #:inputs; change builder to pass #:unionfs
to 'boot-system'.
| Ludovic Courtès |
2014-04-09 | gnu: linux-initrd: Mount /dev/pts at boot time....* guix/build/linux-initrd.scm (make-essential-device-nodes): Remove
'mount' call for /dev/pts.
(boot-system): Add it here, after 'chroot' call.
| Ludovic Courtès |
2014-04-09 | gnu: linux-initrd: Better populate /dev....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/{ptmx,tty} world-writable. Build additional character devices.
| Ludovic Courtès |
2014-03-10 | gnu: linux-initrd: Make the pseudo-tty device nodes....* guix/build/linux-initrd.scm (make-essential-device-nodes): Create
/dev/ptmx and /dev/pts.
* gnu/system/vm.scm (qemu-image): Umount /fs/dev/pts before /fs.
| Ludovic Courtès |
2014-02-09 | gnu: linux-initrd: When booting, chdir to the new root before calling 'chroot'....* guix/build/linux-initrd.scm (boot-system): Add 'chdir' call right
before 'chroot'.
| Ludovic Courtès |
2014-02-01 | gnu: linux-initrd: Build /dev/input devices....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
dev/input devices.
| Ludovic Courtès |
2014-02-01 | gnu: linux-initrd: Make /dev/{mem,kmem}....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
dev/{mem,kmem}.
| Ludovic Courtès |
2014-01-31 | gnu: linux-initrd: Allow the root file system to be volatile....* gnu/system/linux-initrd.scm (qemu-initrd): Add 'volatile-root?'
parameter.
* guix/build/linux-initrd.scm (boot-system): Likewise. Honor it.
| Ludovic Courtès |
2014-01-31 | gnu: linux-initrd: Recognize 9p file systems....* gnu/system/linux-initrd.scm (qemu-initrd)[virtio-9p-modules]: New
variable.
[linux-modules]: Append VIRTIO-9P-MODULES when a 9p file system is in
MOUNTS.
* guix/build/linux-initrd.scm (mount-qemu-9p): New procedure.
(boot-system): Recognize '9p' in MOUNTS, and use 'mount-qemu-9p'.
| Ludovic Courtès |
2014-01-31 | gnu: linux-initrd: Properly distinguish between /dev/sda* and /dev/vda*....* guix/build/linux-initrd.scm (make-essential-device-nodes): Rename
devices with major = 8 to /dev/sda*. Make /dev/vda* devices.
* gnu/system/vm.scm (qemu-image): Change '/dev/vda' to '/dev/sda'.
* gnu/system.scm (operating-system-derivation): Likewise.
| Ludovic Courtès |
2014-01-31 | gnu: linux-initrd: Start a REPL when the root could not be mounted....* guix/build/linux-initrd.scm (boot-system): Catch errors when mounting
ROOT and call 'start-repl' upon error.
| Ludovic Courtès |
2014-01-29 | gnu: linux-initrd: Factorize boot code....* guix/build/linux-initrd.scm (boot-system): New procedure.
* gnu/system/linux-initrd.scm (qemu-initrd): Add keyword parameters
'guile-modules-in-chroot?' and 'mounts'. Change builder to simply
call 'boot-system'.
(gnu-system-initrd): Change to a simple call to 'qemu-initrd'.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Call
'qemu-initrd' with #:guile-modules-in-chroot?.
| Ludovic Courtès |
2014-01-18 | linux-initrd: Make /dev/{null,zero} world-writable....Reported by zerwas on #guix.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/null and /dev/zero world-writable.
| Ludovic Courtès |
2013-09-11 | linux-initrd: Create /dev/klog and /dev/kmsg....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/klog and /dev/kmsg.
| Ludovic Courtès |
2013-09-05 | gnu: linux-initrd: Fix creation of /dev/tty nodes....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/tty. Change from 'block-special' to 'char-special' for /dev/tty*
nodes.
| Ludovic Courtès |
2013-09-02 | gnu: linux-initrd: Factorize device node creation....* guix/build/linux-initrd.scm (make-essential-device-nodes): New
procedure.
* gnu/packages/linux-initrd.scm (qemu-initrd): Use it.
| Ludovic Courtès |
2013-08-31 | gnu: linux-initrd: Make Guile modules accessible in the chroot....* gnu/packages/linux-initrd.scm (qemu-initrd): Add (guix build utils) to
#:modules, and use it. Copy .scm and .go files to /root.
* guix/build/linux-initrd.scm (bind-mount): New procedure.
| Ludovic Courtès |
2013-08-29 | gnu: linux-initrd: Add (guix build linux-initrd) and use it....* gnu/packages/linux-initrd.scm (qemu-initrd): Add #:modules argument.
Factorize and move some of the code to...
* guix/build/linux-initrd.scm: ... here. New file.
* Makefile.am (MODULES): Add it.
| Ludovic Courtès |