diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-11-21 14:36:20 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-11-25 12:18:34 +0100 |
commit | 113472d5c0115d53d2fb99288759502d196a8e93 (patch) | |
tree | 7e3d77cedb5afb1f505d3df51848f79dda37db0a /src/boot.h | |
parent | 232e6eb30830eb74aac63e22e766f0f0848fb878 (diff) |
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.
Diffstat (limited to 'src/boot.h')
-rw-r--r-- | src/boot.h | 14 |
1 files changed, 14 insertions, 0 deletions
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_ */ |