From 8ff74be5921675d7e029d471dff05ea0083c1c88 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Sat, 19 Oct 2024 10:36:44 +0100 Subject: [PATCH] Failed CoreOS install --- servers/config.bu | 20 +++++----- servers/personal2.bu | 88 ++++++++++++++++++++++++++++++++++++++++++ servers/personal2.ipxe | 13 +++++++ 3 files changed, 111 insertions(+), 10 deletions(-) create mode 100644 servers/personal2.bu create mode 100644 servers/personal2.ipxe diff --git a/servers/config.bu b/servers/config.bu index 4b5b92b6..f1948845 100644 --- a/servers/config.bu +++ b/servers/config.bu @@ -14,13 +14,13 @@ passwd: ssh_authorized_keys: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILqathM/KAjYvI4NzwDs4UJxVcMyv+xwYt0axPP7HzmZ -storage: - files: - - path: /etc/ssh/sshd_config.d/20-enable-passwords.conf - mode: 0644 - contents: - inline: | - # Fedora CoreOS disables SSH password login by default. - # Enable it. - # This file must sort before 40-disable-passwords.conf. - PasswordAuthentication yes \ No newline at end of file +# storage: +# files: +# - path: /etc/ssh/sshd_config.d/20-enable-passwords.conf +# mode: 0644 +# contents: +# inline: | +# # Fedora CoreOS disables SSH password login by default. +# # Enable it. +# # This file must sort before 40-disable-passwords.conf. +# PasswordAuthentication yes \ No newline at end of file diff --git a/servers/personal2.bu b/servers/personal2.bu new file mode 100644 index 00000000..cf9b848a --- /dev/null +++ b/servers/personal2.bu @@ -0,0 +1,88 @@ +# coreos-installer install /dev/nvme0n1 --ignition-url https://config-servers-1.ellis.link/personal2.ign +variant: fcos +version: 1.5.0 +# ignition: +# config: +# replace: +# source: https://jade-coreos-config.netlify.app/main.ign +passwd: + users: + - name: core + ssh_authorized_keys: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILqathM/KAjYvI4NzwDs4UJxVcMyv+xwYt0axPP7HzmZ + +boot_device: + mirror: + devices: + - /dev/nvme0n1 + - /dev/nvme1n1 +storage: + disks: + - device: /dev/nvme0n1 + # We do not want to wipe the partition table since this is the primary + # device. + wipe_table: false + partitions: + # - number: 4 + # label: root + # # Allocate at least 8 GiB to the rootfs. See NOTE above about this. + # size_mib: 8192 + # resize: true + - label: var-1 + size_mib: 0 # 0 means all remaining space + - device: /dev/nvme1n1 + wipe_table: false + partitions: + - label: var-2 + size_mib: 0 + + filesystems: + - device: /dev/disk/by-partlabel/var + label: var + format: xfs + wipe_filesystem: false + path: /var + with_mount_unit: true + files: + - path: /etc/hostname + mode: 0644 + contents: + inline: jade-personal2 + # directories: + # - path: /var/opt/thelounge + # - path: /var/srv/traefik + # - path: /var/opt/kanidm_data + # - path: /var/opt/mysql-database + # - path: /var/opt/pterodactyl + # - path: /var/opt/pterodactyl/panel/nginx + # - path: /var/opt/pterodactyl/panel/var + # - path: /var/opt/pterodactyl/panel/logs + # - path: /etc/firewalld + # mode: 0750 + # See: https://docs.fedoraproject.org/en-US/fedora-coreos/storage/ + # filesystems: + # - device: /dev/disk/by-partlabel/var + # label: var + # format: xfs + # wipe_filesystem: false + # path: /var + # with_mount_unit: true + # trees: + # - local: containers + # path: /etc/containers/systemd + # - local: traefik + # path: /etc/traefik + # - local: kanidm + # path: /etc/kanidm + # - local: images + # path: /var/opt/images +# storage: +# files: +# - path: /etc/ssh/sshd_config.d/20-enable-passwords.conf +# mode: 0644 +# contents: +# inline: | +# # Fedora CoreOS disables SSH password login by default. +# # Enable it. +# # This file must sort before 40-disable-passwords.conf. +# PasswordAuthentication yes \ No newline at end of file diff --git a/servers/personal2.ipxe b/servers/personal2.ipxe new file mode 100644 index 00000000..83855654 --- /dev/null +++ b/servers/personal2.ipxe @@ -0,0 +1,13 @@ +#!ipxe + +set STREAM stable +set VERSION 40.20240920.3.0 +set INSTALLDEV /dev/nvme0 +set CONFIGURL https://config-servers-1.ellis.link/personal2.ign + +set BASEURL https://builds.coreos.fedoraproject.org/prod/streams/${STREAM}/builds/${VERSION}/x86_64 + +kernel ${BASEURL}/fedora-coreos-${VERSION}-live-kernel-x86_64 initrd=main coreos.live.rootfs_url=${BASEURL}/fedora-coreos-${VERSION}-live-rootfs.x86_64.img coreos.inst.install_dev=${INSTALLDEV} coreos.inst.ignition_url=${CONFIGURL} +initrd --name main ${BASEURL}/fedora-coreos-${VERSION}-live-initramfs.x86_64.img + +boot