summaryrefslogtreecommitdiff
path: root/guix/build/linux-initrd.scm
AgeCommit message (Expand)Author
2014-05-16linux-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-14linux-initrd: Make /dev/ttyS0, for debugging....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/ttyS0. Ludovic Courtès
2014-05-14system: 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-10services: 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-10linux-initrd: Append to /etc/mtab....* guix/build/linux-initrd.scm (mount-file-system): Open /etc/mtab in append mode. Ludovic Courtès
2014-05-08linux-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-08linux-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-06linux-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-04linux-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-04linux-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-03vm: 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-03system: 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-30linux-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-14linux-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-09gnu: 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-09gnu: 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-10gnu: 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-09gnu: 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-01gnu: linux-initrd: Build /dev/input devices....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/input devices. Ludovic Courtès
2014-02-01gnu: linux-initrd: Make /dev/{mem,kmem}....* guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/{mem,kmem}. Ludovic Courtès
2014-01-31gnu: 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-31gnu: 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-31gnu: 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-31gnu: 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-29gnu: 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-18linux-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-11linux-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-05gnu: 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-02gnu: 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-31gnu: 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-29gnu: 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