Commit Graph
66043 Commits
Author SHA1 Message Date
Tuomas Tynkkynen df86813d97 nixos: Add derivations for SD card installation images on ARM
The resulting image can be copied to a SD card with `dd` and is directly
bootable by a suitably configured U-Boot. Though depending on the board, some
extra steps are required for copying U-Boot itself to the SD card.

Inside the image is a partition table, with a FAT32 /boot and a normal
writable EXT4 rootfs. It's possible to directly reuse the SD image's
partition layout and "install" NixOS on the same SD card by replacing
the default configuration.nix and nixos-rebuild, and actually is the
preferred way to use these images. To assist in this installation
method, the boot scripts on the image automatically resize the rootfs
partition to fit the SD card on the first boot.

The SD images come in two flavors; one for the ARMv6 Raspberry Pi,
and one multiplatform image for all the boards supported by the
mainline kernel's multi_v7_defconfig config target. At the moment, these
have been tested on:
    - Raspberry Pi Model B (512MB model)
    - NVIDIA Jetson TK1
    - Linksprite pcDuino3 Nano

To build, run:

nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage \
    -I nixos-config='<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix>'
2015-07-26 00:31:20 +03:00
Tuomas Tynkkynen 8665b0d8b1 extlinux-conf-builder: Fix warning when building in chroot
When using extlinux-conf-builder in a nix build using chroots, the
following error message could be seen:

/nix/store/XXX-extlinux-conf-builder.sh: line 121: cd: /nix/var/nix/profiles: No such file or directory

To avoid this, just skip the code path parsing /nix/var/nix/profiles
when $numGenerations (passed from the command line) is 0 (which is the
only legal value of $numGenerations in a nix build context).
2015-07-26 00:31:20 +03:00
Tuomas Tynkkynen a6c95a3f7d extlinux-conf-builder: Set menu title to force prompt display
Without a menu title, U-Boot's distro scripts just autoboot the first
entry by default.

When I initially wrote this, my board wasn't apparently running stock
U-Boot but had some local hacks saved in the U-Boot's environment
which made it always display the prompt.
2015-07-22 16:08:18 +03:00
Tuomas Tynkkynen 8496f71e92 extlinux-conf-builder: Make it work on non-DTB systems
With this, boot.loader.generic-extlinux-compatible can be used with
linuxPackages_rpi on the Raspberry Pi.
2015-07-22 16:08:17 +03:00
Tuomas Tynkkynen 6147909f8e extlinux-conf-builder: Properly copy kernels for the default entry
When calling addEntry inside a subshell, the filesCopied array would
be updated only in the subshell's environment. This would only cause an
issue if no -g flag was passed to the script, causing no kernels
to be copied.
2015-07-22 16:08:17 +03:00
Tuomas Tynkkynen 1947179036 nixos/rogue: Set WorkingDirectory to /tmp
Otherwise we can get an ugly /rogue.scr in the root of the filesystem
hierarchy.
2015-07-22 16:08:17 +03:00
Tuomas Tynkkynen 82d0acaf37 kernel-config: Explicitly enable NAMESPACES
Namespace support is required by the `unshare` tool used in
`nixos-install`. It's enabled by the x86 defconfig, but not by
e.g. multi_v7_defconfig. So enable it here so that `nixos-install`
can work on ARM.
2015-07-22 16:08:17 +03:00
Tuomas Tynkkynen ec43c69b5d linux-rpi: Fix modDirVersion
This causes build breakage on staging due to #7524.
2015-07-22 16:08:17 +03:00
Domen Kožar db22d387db Merge pull request #8946 from desiderius/elasticsearch-dsl-0.0.4
python-packages: update elasticsearch-dsl 0.0.3 to 0.0.4
2015-07-22 14:41:53 +02:00
desiderius 0d9d941d65 python-packages: update elasticsearch-dsl 0.0.3 to 0.0.4 2015-07-22 14:31:56 +02:00
Luca Bruno eae4712f52 glib-tested: disable appinfo test, cannot reproduce hydra failure 2015-07-22 13:52:40 +02:00
Eelco Dolstra fab3090693 Don't include wireless tools in containers 2015-07-22 12:51:21 +02:00
Eelco Dolstra 9a75bafcda systemd-timesyncd: Use NTP servers from our own ntp.org pool
(cherry picked from commit 01dc343c2c)

Conflicts:
	pkgs/os-specific/linux/systemd/default.nix
2015-07-22 12:27:50 +02:00
Eelco Dolstra 4232f5d219 Disable system_tarball_pc and fix eval
It refers to a kernel version that no longer exists.

(cherry picked from commit e4b9624ca8)
2015-07-22 12:27:15 +02:00
Tuomas Tynkkynen 5d02c02a9b systemd: Use upstream tmpfiles.d rules
This fixes a failing assert in systemd-timesyncd (issue #5913) as it
expects the directory /run/systemd/netif/links/ to exist, and nothing in
NixOS currently creates it.

Also we get a net reduction in our code as rules for /run/utmp and
/var/log/journal are also provided by the same upstream file.

(cherry picked from commit a278a9224a)
2015-07-22 12:27:05 +02:00
Eelco Dolstra eedda353f3 Remove Linux 3.19
It's already EOL so we shouldn't keep it around in our new stable
branch.

(cherry picked from commit cdbb5483b7)
2015-07-22 12:26:03 +02:00
Eelco Dolstra 069b4a8a57 Remove Linux 3.2 and 3.4
These are not supported by systemd so no reason to keep them around.

(cherry picked from commit ee10e165dc)

Conflicts:
	pkgs/os-specific/linux/kernel/linux-3.4.nix
2015-07-22 12:25:32 +02:00
Eelco Dolstra bb5647ea0f Remove unused file
(cherry picked from commit 58ef0eea0c)
2015-07-22 12:25:11 +02:00
Eelco Dolstra 925e1f91c5 Set up /etc/machine-id before starting systemd
Otherwise, systemd will try to populate /etc, which we don't want.

(cherry picked from commit c8501a4218)
2015-07-22 12:24:32 +02:00
Eelco Dolstra 2c48ab4390 Remove ancient version of udev
(cherry picked from commit ab91aaaeb8)
2015-07-22 12:24:24 +02:00
Eelco Dolstra 0ab320a884 stage-1: Shut up warnings about swap devices that don't exist yet
(cherry picked from commit 388dac478d)
2015-07-22 12:24:06 +02:00
Eelco Dolstra ec82157ac5 stage-2: Don't run hwclock in containers
(cherry picked from commit b978df019a)
2015-07-22 12:23:52 +02:00
Eelco Dolstra 9647609e3e stage-1: Don't mount /dev/shm if it's already mounted
(cherry picked from commit c8ef598945)
2015-07-22 12:23:48 +02:00
Eelco Dolstra 6bd4e0b8cd Create systemd-{network,resolve} user/group unconditionally
This shuts up this error from dbus:

May 11 13:52:16 machine dbus-daemon[259]: Unknown username "systemd-network" in message bus configuration file
May 11 13:52:16 machine dbus-daemon[259]: Unknown username "systemd-resolve" in message bus configuration file

which happens because the D-Bus config for networkd/resolved is
enabled unconditionally, and we don't have an easy way to turn it off.

(cherry picked from commit f19b58fb6a)
2015-07-22 12:23:45 +02:00
Eelco Dolstra 65700b435c Use ConditionVirtualization to disable some services in containers
(cherry picked from commit c52a983806)
2015-07-22 12:23:40 +02:00
lethalman cce3aa1e22 Merge pull request #8896 from dezgeg/pr-ovmf
edk2, OVMF: Fix build on GCC 4.9
2015-07-22 12:01:07 +02:00
Luca Bruno 58430f3259 Revert "OVMF: build with gcc 4.8, I'm no idea what I'm doing (ZHF)"
This reverts commit 0abe34e454.
2015-07-22 11:58:02 +02:00
Luca Bruno befef13d37 chaps: not supported on i686 (ZHF) 2015-07-22 11:37:38 +02:00
Luca Bruno 0abe34e454 OVMF: build with gcc 4.8, I'm no idea what I'm doing (ZHF) 2015-07-22 11:34:27 +02:00
lethalman 5e6e63727e Merge pull request #8939 from joachifm/coreclr-disable-i686
coreclr: disable i686 build
2015-07-22 11:31:02 +02:00
Luca Bruno 14d36053b1 weston: use version 1.8.0 instead of wayland version (ZHF) 2015-07-22 11:23:17 +02:00
Luca Bruno 6151349d07 partclone: fix download (ZHF) 2015-07-22 10:58:21 +02:00
Luca Bruno 6f5aa25e89 Revert "zfs_git: 2015-06-22 -> 2015-07-01"
This reverts commit 54022375eb.

Revert "zfs_git: 2015-05-13 -> 2015-06-22"

This reverts commit 59faa759da.

Closes #8941
2015-07-22 10:31:28 +02:00
Luca Bruno 62092ef4e7 kicad: fix download urls (ZHF) 2015-07-22 10:23:34 +02:00
Luca Bruno 04e782f380 hbase: 0.98.8 -> 0.98.13. Fixes download (ZHF) 2015-07-22 10:10:03 +02:00
Luca Bruno f50e327510 gradm: fix download (ZHF) 2015-07-22 10:04:00 +02:00
Joachim Fasting fe7114035f coreclr: disable i686 build
The hydra build [1] fails with

  error: Detected non x86_64 target processor.  Not supported!

[1]: https://hydra.nixos.org/build/23871656
2015-07-22 10:00:20 +02:00
Luca Bruno 419b15a215 capstone: fix hhttps typo (ZHF) 2015-07-22 09:56:46 +02:00
William A. Kennington III 551a26dad1 chromium: Update stable 43 -> 44 2015-07-21 21:59:28 -07:00
Dan Peebles 75a7f96b44 knockknock: minor cleanup 2015-07-22 01:32:09 +00:00
Dan Peebles a8c7abdb8d knockknock: init
A simple but secure port knocking daemon and associated tool (NixOS modules upcoming)
2015-07-22 01:26:40 +00:00
Austin Seipp 0ca8ddc16e nixpkgs: fsharp 3.1.1.32 -> 3.1.2.5
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-07-21 18:51:56 -05:00
Austin Seipp a594118f3d nixpkgs: mono 4.0.1 -> 4.0.2.5
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-07-21 18:50:23 -05:00
Austin Seipp d2986a9398 nixpkgs: remove linuxPackages.ktap
It's been broken on the latest 3 major kernels, and it seems development
has stalled unfortunately, so this should be pulled.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-07-21 18:27:58 -05:00
Arseniy Seroka 91289b13d4 Merge pull request #8926 from dezgeg/pr-memtester
memtester: init at 4.3.0
2015-07-22 01:34:52 +03:00
Arseniy Seroka cbed633a30 Merge pull request #8927 from matthiasbeyer/update-khal
khal: 0.5.0 -> 0.6.0
2015-07-22 01:34:07 +03:00
Arseniy Seroka 431555f86b Merge pull request #8934 from ollieh/ksuperkey
ksuperkey: init
2015-07-22 01:33:42 +03:00
Austin Seipp 2a3a761639 nixpkgs: capstone 2.1.2 -> 3.0.4
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-07-21 17:00:19 -05:00
Austin Seipp a5e1b8db8f nixpkgs: pax-utils 1.0.4 -> 1.0.5
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2015-07-21 17:00:19 -05:00
Oliver Hunt a855efe7db ksuperkey: init 2015-07-21 21:37:29 +00:00