From 113472d5c0115d53d2fb99288759502d196a8e93 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 21 Nov 2024 14:36:20 +0100 Subject: src: add built-in ogrelive grub2 boot mode template Add built-in ogrelive grub2 boot mode template and use it to generate the grub2 boot file for each computer for the new live system. Use grub2 http to download vmlinuz, initrd.img. Use live support to download filesystem.squashfs through http. check for vmlinuz in cache, as usual, otherwise fallback to network boot. --- src/boot.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/boot.h (limited to 'src/boot.h') diff --git a/src/boot.h b/src/boot.h new file mode 100644 index 0000000..4e3ff45 --- /dev/null +++ b/src/boot.h @@ -0,0 +1,14 @@ +#ifndef _OG_BOOT_H_ +#define _OG_BOOT_H_ + +struct og_boot_cfg { + const char *ogserver; + const char *ogrepo; + const char *ogrelivedir; + const char *username; + const char *passwd; +}; + +int ogrelive_generate_grub2_file(const struct og_boot_cfg *cfg, const char *mac); + +#endif /* _OG_BOOT_H_ */ -- cgit v1.2.3-18-g5258