Displaying 8 results from an estimated 8 matches for "initramfs_init".
2018 Aug 02
1
initramfs_init() changes in 6.04
...? Surely it
should have access to 'self' without the caller having to explicitly
pass it in? Isn't that kind of the point?
--- a/boot/syslinux.lua
+++ b/boot/syslinux.lua
@@ -87,8 +87,14 @@
?-- Booting the kernel
?
?local kernel = sl.loadfile("/BZIMAGE")
-local initramfs = sl.initramfs_init()
-sl.initramfs_load_archive(initramfs, "/INITRD")
+local initramfs
+if sl.initramfs_init ~= nil then
+??initramfs = sl.initramfs_init()
+??sl.initramfs_load_archive(initramfs, "/INITRD")
+else
+??initramfs = sl.initramfs()
+??initramfs.load(initramfs, "/INITRD")
+end...
2011 Mar 29
0
[PATCH] Implementation for sl_initramfs_add_file() in lua.c32
..., dst_filename, 0, 0755);
}
static int sl_boot_it(lua_State * L)
###########################################################
Applying this patch the lua code using this function should look like this:
syslinux.initramfs_add_file(initramfs, module, path)
where initramfs was created with syslinux.initramfs_init(), modules
has been loaded with syslinux.loadfile() and path is a string
containing the destintion path for the file.
--
Fernando Esteban Mariano L?pez
Desarrollador de Lihuen / Lihuen Developer (http://lihuen.linti.unlp.edu.ar/)
Administrador del sitio Grid de la UNLP / UNLP's Grid site Admi...
2007 Apr 26
2
boot 32 or 64 kernel depending on cpu
...= '\0';
printf("cmdline: %s\n", cmdline);
pause();
i = loadfile(kernel, &kernel_data, &kernel_len);
printf("load %s: %d (%d)\n", kernel, i, kernel_len);
if (i) {
fprintf(stderr, "kernel %s failed to load\n", kernel);
return 1;
}
if (!(rd = initramfs_init())) {
fprintf(stderr, "couldn't initialize initramfs\n");
return 1;
}
i = loadfile(initrd, &initrd_data, &initrd_len);
printf("load %s: %d (%d)\n", initrd, i, initrd_len);
if (i) {
fprintf(stderr, "initrd %s failed to load\n", initrd);
return 1...
2016 Feb 19
6
Building a http query string including SMBIOS Serial Number to load a specific kernel
Hello folks,
There is a way to get the system serial number from SMBIOS and pass it
as HTTP query string to get the kernel and initrd?
Something like this:
LABEL OS Download
MENU LABEL Clonezilla
MENU INDENT 1
KERNEL http://192.168.10.10/kernel.php?type=kernel (
http://myserver/kernel.php?SN=SMBIOS_SERIAL_NUMBER&type=kernel
)&SN=SMBIOS_SERIAL_NUMBER
APPEND
2008 Mar 13
5
Adding memdisk or similar when booting linux
Hi
Thanx guys for the help on understanding howto read dmi info!
I now have a custom boot menu for install of different linux versions based if they have been installed before (reinstall is ok for users, first install is not), and installquirks like if we detect odd hardware, we add install options to redhat installer so it can install anyhow (for instance hp dc7800 who needs pci=nommconf as
2010 Apr 23
1
Path simple menu integrated progress indicator
...mdline) + strlen(kernel_name) + 12);
+ memset(cmdline2, 0, (strlen(cmdline) + strlen(kernel_name) + 12));
+ strcat(cmdline2, kernel_name);
+ strcat(cmdline2, " ");
+ strcat(cmdline2, cmdline);
+
+ /* Initialize the initramfs chain */
+ initramfs = initramfs_init();
+ if (!initramfs)
+ return;
+
+
+ if ((arg = find_argument(cmdline2, "initrd="))) {
+ do {
+ char* initrdarg = refdup_word(&arg);
+ p = strchr(initrdarg, ',');
+ if (p)
+ *p =...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com>
The following patch series is available at,
git://git.zytor.com/users/mfleming/syslinux.git elflink
All patches are against the 'elflink' branch.
This series fixes a few serious bugs and some behavioural
incompatibilities with the 4.x series.
Matt Fleming (19):
ldlinux: Initialise 'p' before using it.
ldlinux: Parse
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and