don't put hostnames into into disko labels

I believe there are length limits on this.
It's also very surprising if the system no longer boot after changing
the hostname.
This commit is contained in:
Jörg Thalheim
2024-09-03 10:11:03 +02:00
parent 535a39cff3
commit 1fcd1731e5
2 changed files with 6 additions and 6 deletions

View File

@@ -11,12 +11,12 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
"${config.networking.hostName}-boot" = { "boot" = {
size = "1M"; size = "1M";
type = "EF02"; # for grub MBR type = "EF02"; # for grub MBR
priority = 1; priority = 1;
}; };
"${config.networking.hostName}-ESP" = { "ESP" = {
size = "512M"; size = "512M";
type = "EF00"; type = "EF00";
content = { content = {
@@ -25,7 +25,7 @@
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
"${config.networking.hostName}-root" = { "root" = {
size = "100%"; size = "100%";
content = { content = {
type = "filesystem"; type = "filesystem";

View File

@@ -13,12 +13,12 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
"${config.networking.hostName}-boot" = { "boot" = {
size = "1M"; size = "1M";
type = "EF02"; # for grub MBR type = "EF02"; # for grub MBR
priority = 1; priority = 1;
}; };
"${config.networking.hostName}-ESP" = { "ESP" = {
size = "512M"; size = "512M";
type = "EF00"; type = "EF00";
content = { content = {
@@ -28,7 +28,7 @@
mountOptions = [ "nofail" ]; mountOptions = [ "nofail" ];
}; };
}; };
"${config.networking.hostName}-root" = { "root" = {
size = "100%"; size = "100%";
content = { content = {
type = "filesystem"; type = "filesystem";