mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
kexec-fiwix: Increase space reserved for the kexec target to 256MB
This commit is contained in:
parent
812b41d4f8
commit
9ac4540ae4
1 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#define MULTIBOOT_MAGIC 0x2BADB002
|
#define MULTIBOOT_MAGIC 0x2BADB002
|
||||||
#define INITRD_MB 1152
|
#define INITRD_MB 1152
|
||||||
|
#define KEXEC_MB 256
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
/* Read the kernel */
|
/* Read the kernel */
|
||||||
|
|
@ -81,11 +82,11 @@ int main() {
|
||||||
char *bare_metal = getenv("BARE_METAL");
|
char *bare_metal = getenv("BARE_METAL");
|
||||||
if (bare_metal != NULL && strcmp(bare_metal, "True") == 0)
|
if (bare_metal != NULL && strcmp(bare_metal, "True") == 0)
|
||||||
{
|
{
|
||||||
sprintf(cmdline, "fiwix root=/dev/ram0 ramdisksize=%d initrd=sysa.ext2 kexec_proto=linux kexec_size=67000 kexec_cmdline=\"init=/init\"", INITRD_MB * 1024);
|
sprintf(cmdline, "fiwix root=/dev/ram0 ramdisksize=%d initrd=sysa.ext2 kexec_proto=linux kexec_size=%d kexec_cmdline=\"init=/init\"", INITRD_MB * 1024, KEXEC_MB * 1024);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf(cmdline, "fiwix console=/dev/ttyS0 root=/dev/ram0 ramdisksize=%d initrd=sysa.ext2 kexec_proto=linux kexec_size=67000 kexec_cmdline=\"init=/init console=ttyS0\"", INITRD_MB * 1024);
|
sprintf(cmdline, "fiwix console=/dev/ttyS0 root=/dev/ram0 ramdisksize=%d initrd=sysa.ext2 kexec_proto=linux kexec_size=%d kexec_cmdline=\"init=/init console=ttyS0\"", INITRD_MB * 1024, KEXEC_MB * 1024);
|
||||||
}
|
}
|
||||||
char * boot_loader_name = "kexec-fiwix";
|
char * boot_loader_name = "kexec-fiwix";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue