Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: aae7d68c45a3
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fb16f664187f
Choose a head ref
  • 7 commits
  • 7 files changed
  • 3 contributors

Commits on Apr 25, 2018

  1. Fix root volume resizing on EC2 KVM instances (M5, C5, etc)

    This is a backport of #39164 PR
    Ihor Antonov committed Apr 25, 2018
    Copy the full SHA
    4be6922 View commit details

Commits on Jun 4, 2018

  1. Do not kill udev during boot

    Ihor Antonov committed Jun 4, 2018
    Copy the full SHA
    07ba0ed View commit details
  2. Merge branch 'release-18.03' of github.com:ngortheone/nixpkgs into re…

    …lease-18.03
    Ihor Antonov committed Jun 4, 2018
    Copy the full SHA
    654a572 View commit details

Commits on Jun 5, 2018

  1. linux: 4.9.105 -> 4.9.106

    (cherry picked from commit 967467c)
    NeQuissimus committed Jun 5, 2018
    Copy the full SHA
    4bb86e8 View commit details
  2. linux: 4.14.47 -> 4.14.48

    (cherry picked from commit 661721f)
    NeQuissimus committed Jun 5, 2018
    Copy the full SHA
    a167462 View commit details
  3. linux: 4.16.13 -> 4.16.14

    (cherry picked from commit 6842319)
    NeQuissimus committed Jun 5, 2018
    Copy the full SHA
    c7137f0 View commit details
  4. Merge pull request #41456 from ngortheone/release-18.03

    Do not kill udev during boot
    copumpkin authored Jun 5, 2018
    Copy the full SHA
    fb16f66 View commit details
5 changes: 5 additions & 0 deletions nixos/maintainers/scripts/ec2/amazon-image.nix
Original file line number Diff line number Diff line change
@@ -8,6 +8,11 @@ in {

imports = [ ../../../modules/virtualisation/amazon-image.nix ];

# Required to provide good EBS experience,
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html#timeout-nvme-ebs-volumes
# TODO change value to 4294967295 when kernel is updated to 4.15 or later
config.boot.kernelParams = [ "nvme_core.io_timeout=255" ];

options.amazonImage = {
name = mkOption {
type = types.str;
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/grow-partition.nix
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ with lib;

boot.initrd.postDeviceCommands = ''
rootDevice="${config.fileSystems."/".device}"
if [ -e "$rootDevice" ]; then
if waitDevice "$rootDevice"; then
rootDevice="$(readlink -f "$rootDevice")"
parentDevice="$rootDevice"
while [ "''${parentDevice%[0-9]}" != "''${parentDevice}" ]; do
51 changes: 26 additions & 25 deletions nixos/modules/system/boot/stage-1-init.sh
Original file line number Diff line number Diff line change
@@ -74,6 +74,32 @@ ln -s /proc/mounts /etc/mtab # to shut up mke2fs
touch /etc/udev/hwdb.bin # to shut up udev
touch /etc/initrd-release

# Function for waiting a device to appear.
waitDevice() {
local device="$1"

# USB storage devices tend to appear with some delay. It would be
# great if we had a way to synchronously wait for them, but
# alas... So just wait for a few seconds for the device to
# appear.
if test ! -e $device; then
echo -n "waiting for device $device to appear..."
try=20
while [ $try -gt 0 ]; do
sleep 1
# also re-try lvm activation now that new block devices might have appeared
lvm vgchange -ay
# and tell udev to create nodes for the new LVs
udevadm trigger --action=add
if test -e $device; then break; fi
echo -n "."
try=$((try - 1))
done
echo
[ $try -ne 0 ]
fi
}

# Mount special file systems.
specialMount() {
local device="$1"
@@ -377,31 +403,6 @@ lustrateRoot () {
exec 4>&-
}
# Function for waiting a device to appear.
waitDevice() {
local device="$1"
# USB storage devices tend to appear with some delay. It would be
# great if we had a way to synchronously wait for them, but
# alas... So just wait for a few seconds for the device to
# appear.
if test ! -e $device; then
echo -n "waiting for device $device to appear..."
try=20
while [ $try -gt 0 ]; do
sleep 1
# also re-try lvm activation now that new block devices might have appeared
lvm vgchange -ay
# and tell udev to create nodes for the new LVs
udevadm trigger --action=add
if test -e $device; then break; fi
echo -n "."
try=$((try - 1))
done
echo
[ $try -ne 0 ]
fi
}
# Try to resume - all modules are loaded now.
7 changes: 0 additions & 7 deletions nixos/modules/virtualisation/amazon-image.nix
Original file line number Diff line number Diff line change
@@ -48,13 +48,6 @@ let cfg = config.ec2; in
boot.loader.grub.extraPerEntryConfig = mkIf (!cfg.hvm) "root (hd0)";
boot.loader.timeout = 0;

boot.initrd.postDeviceCommands =
''
# Force udev to exit to prevent random "Device or resource busy
# while trying to open /dev/xvda" errors from fsck.
udevadm control --exit || true
'';

boot.initrd.network.enable = true;

# Mount all formatted ephemeral disks and activate all swap devices.
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-4.14.nix
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
with stdenv.lib;

buildLinux (args // rec {
version = "4.14.47";
version = "4.14.48";

# branchVersion needs to be x.y
extraMeta.branch = concatStrings (intersperse "." (take 2 (splitString "." version)));

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "06c8kl9f0s5qmqh9l16y1q7r44ld56kd0a00722c3aivddm3nav7";
sha256 = "1f92pz92mf0x9jfv3qf4w40i78l053f2qh2n8p2sbrqzc67n1840";
};
} // (args.argsOverride or {}))
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-4.16.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
with stdenv.lib;

buildLinux (args // rec {
version = "4.16.13";
version = "4.16.14";

# modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg;
@@ -13,6 +13,6 @@ buildLinux (args // rec {

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1qzj5mbkxkrpmnwws8vdz292gp863kybrgr9bvgs7v28plx7n2kg";
sha256 = "1h6zjnwpdyqk9fp72c35565lhw00kpjl55faakwx7xsxfpyvc25p";
};
} // (args.argsOverride or {}))
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/kernel/linux-4.9.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:

buildLinux (args // rec {
version = "4.9.105";
version = "4.9.106";
extraMeta.branch = "4.9";

src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1i3dv7lvh7b08943iw45j0x99878wia83fribbgxn7xcwcld51fh";
sha256 = "0g5y3ckwb1zn8gzsk1sc6vnmsrvsx5g2a1p0p9hrmsl8jnr9nh1d";
};
} // (args.argsOverride or {}))