Merge pull request #113570 from xaverdh/remove-systemConfig
Remove system config kernel parameter
This commit is contained in:
commit
68496cb927
@ -91,6 +91,11 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <literal>systemConfig</literal> kernel parameter is no longer added to boot loader entries. It has been unused since September 2010, but if do have a system generation from that era, you will now be unable to boot into them.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<literal>systemd-journal2gelf</literal> no longer parses json and expects the receiving system to handle it. How to achieve this with Graylog is described in this <link xlink:href="https://github.com/parse-nl/SystemdJournal2Gelf/issues/10">GitHub issue</link>.
|
<literal>systemd-journal2gelf</literal> no longer parses json and expects the receiving system to handle it. How to achieve this with Graylog is described in this <link xlink:href="https://github.com/parse-nl/SystemdJournal2Gelf/issues/10">GitHub issue</link>.
|
||||||
|
@ -26,7 +26,7 @@ let
|
|||||||
# A clue for the kernel loading
|
# A clue for the kernel loading
|
||||||
kernelParams = pkgs.writeText "kernel-params.txt" ''
|
kernelParams = pkgs.writeText "kernel-params.txt" ''
|
||||||
Kernel Parameters:
|
Kernel Parameters:
|
||||||
init=/boot/init systemConfig=/boot/init ${toString config.boot.kernelParams}
|
init=/boot/init ${toString config.boot.kernelParams}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# System wide nixpkgs config
|
# System wide nixpkgs config
|
||||||
|
@ -23,13 +23,13 @@ let
|
|||||||
label nixos
|
label nixos
|
||||||
MENU LABEL ^NixOS using nfsroot
|
MENU LABEL ^NixOS using nfsroot
|
||||||
KERNEL bzImage
|
KERNEL bzImage
|
||||||
append ip=dhcp nfsroot=/home/pcroot systemConfig=${config.system.build.toplevel} init=${config.system.build.toplevel}/init rw
|
append ip=dhcp nfsroot=/home/pcroot init=${config.system.build.toplevel}/init rw
|
||||||
|
|
||||||
# I don't know how to make this boot with nfsroot (using the initrd)
|
# I don't know how to make this boot with nfsroot (using the initrd)
|
||||||
label nixos_initrd
|
label nixos_initrd
|
||||||
MENU LABEL NixOS booting the poor ^initrd.
|
MENU LABEL NixOS booting the poor ^initrd.
|
||||||
KERNEL bzImage
|
KERNEL bzImage
|
||||||
append initrd=initrd ip=dhcp nfsroot=/home/pcroot systemConfig=${config.system.build.toplevel} init=${config.system.build.toplevel}/init rw
|
append initrd=initrd ip=dhcp nfsroot=/home/pcroot init=${config.system.build.toplevel}/init rw
|
||||||
|
|
||||||
label memtest
|
label memtest
|
||||||
MENU LABEL ^${pkgs.memtest86.name}
|
MENU LABEL ^${pkgs.memtest86.name}
|
||||||
|
@ -53,7 +53,7 @@ in
|
|||||||
${pkgs.kexectools}/sbin/kexec -p /run/current-system/kernel \
|
${pkgs.kexectools}/sbin/kexec -p /run/current-system/kernel \
|
||||||
--initrd=/run/current-system/initrd \
|
--initrd=/run/current-system/initrd \
|
||||||
--reset-vga --console-vga \
|
--reset-vga --console-vga \
|
||||||
--command-line="systemConfig=$(readlink -f /run/current-system) init=$(readlink -f /run/current-system/init) irqpoll maxcpus=1 reset_devices ${kernelParams}"
|
--command-line="init=$(readlink -f /run/current-system/init) irqpoll maxcpus=1 reset_devices ${kernelParams}"
|
||||||
'';
|
'';
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"crashkernel=${crashdump.reservedMemory}"
|
"crashkernel=${crashdump.reservedMemory}"
|
||||||
|
@ -109,7 +109,7 @@ addEntry() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo " APPEND systemConfig=$path init=$path/init $extraParams"
|
echo " APPEND init=$path/init $extraParams"
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpFile="$target/extlinux/extlinux.conf.tmp.$$"
|
tmpFile="$target/extlinux/extlinux.conf.tmp.$$"
|
||||||
|
@ -105,7 +105,7 @@ struct(Fs => {
|
|||||||
device => '$',
|
device => '$',
|
||||||
type => '$',
|
type => '$',
|
||||||
mount => '$',
|
mount => '$',
|
||||||
});
|
});
|
||||||
sub PathInMount {
|
sub PathInMount {
|
||||||
my ($path, $mount) = @_;
|
my ($path, $mount) = @_;
|
||||||
my @splitMount = split /\//, $mount;
|
my @splitMount = split /\//, $mount;
|
||||||
@ -156,7 +156,7 @@ sub GetFs {
|
|||||||
struct (Grub => {
|
struct (Grub => {
|
||||||
path => '$',
|
path => '$',
|
||||||
search => '$',
|
search => '$',
|
||||||
});
|
});
|
||||||
my $driveid = 1;
|
my $driveid = 1;
|
||||||
sub GrubFs {
|
sub GrubFs {
|
||||||
my ($dir) = @_;
|
my ($dir) = @_;
|
||||||
@ -459,7 +459,6 @@ sub addEntry {
|
|||||||
# FIXME: $confName
|
# FIXME: $confName
|
||||||
|
|
||||||
my $kernelParams =
|
my $kernelParams =
|
||||||
"systemConfig=" . Cwd::abs_path($path) . " " .
|
|
||||||
"init=" . Cwd::abs_path("$path/init") . " " .
|
"init=" . Cwd::abs_path("$path/init") . " " .
|
||||||
readFile("$path/kernel-params");
|
readFile("$path/kernel-params");
|
||||||
my $xenParams = $xen && -e "$path/xen-params" ? readFile("$path/xen-params") : "";
|
my $xenParams = $xen && -e "$path/xen-params" ? readFile("$path/xen-params") : "";
|
||||||
@ -633,7 +632,7 @@ struct(GrubState => {
|
|||||||
devices => '$',
|
devices => '$',
|
||||||
efiMountPoint => '$',
|
efiMountPoint => '$',
|
||||||
extraGrubInstallArgs => '@',
|
extraGrubInstallArgs => '@',
|
||||||
});
|
});
|
||||||
# If you add something to the state file, only add it to the end
|
# If you add something to the state file, only add it to the end
|
||||||
# because it is read line-by-line.
|
# because it is read line-by-line.
|
||||||
sub readGrubState {
|
sub readGrubState {
|
||||||
|
@ -49,7 +49,6 @@ addEntry() {
|
|||||||
echo "#!/bin/sh"
|
echo "#!/bin/sh"
|
||||||
echo "# $name"
|
echo "# $name"
|
||||||
echo "# created by init-script-builder.sh"
|
echo "# created by init-script-builder.sh"
|
||||||
echo "export systemConfig=$(readlink -f $path)"
|
|
||||||
echo "exec $stage2"
|
echo "exec $stage2"
|
||||||
)"
|
)"
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ def write_entry(profile, generation, machine_id):
|
|||||||
entry_file = "@efiSysMountPoint@/loader/entries/nixos-generation-%d.conf" % (generation)
|
entry_file = "@efiSysMountPoint@/loader/entries/nixos-generation-%d.conf" % (generation)
|
||||||
generation_dir = os.readlink(system_dir(profile, generation))
|
generation_dir = os.readlink(system_dir(profile, generation))
|
||||||
tmp_path = "%s.tmp" % (entry_file)
|
tmp_path = "%s.tmp" % (entry_file)
|
||||||
kernel_params = "systemConfig=%s init=%s/init " % (generation_dir, generation_dir)
|
kernel_params = "init=%s/init " % generation_dir
|
||||||
|
|
||||||
with open("%s/kernel-params" % (generation_dir)) as params_file:
|
with open("%s/kernel-params" % (generation_dir)) as params_file:
|
||||||
kernel_params = kernel_params + params_file.read()
|
kernel_params = kernel_params + params_file.read()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user