search for: ext2_make_initrd

Displaying 7 results from an estimated 7 matches for "ext2_make_initrd".

2011 Jun 04
3
[PATCH 1/3] febootstrap/helper/init: make sure /proc is mounted into chroot.
--- helper/init.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/helper/init.c b/helper/init.c index 0ca3135..2b5dacf 100644 --- a/helper/init.c +++ b/helper/init.c @@ -163,8 +163,10 @@ main () chdir ("/"); - /* Run /init from ext2 filesystem. */ + mount_proc (); print_uptime (); + + /* Run /init from ext2 filesystem. */ execl
2012 Jan 10
2
plug leaks in febootstrap
...t was a no-op. >From 7c2ff55613598a1295e213cef36600ad61da7ed6 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Tue, 10 Jan 2012 16:55:49 +0100 Subject: [PATCH 1/2] helper: plug three small leaks * helper/ext2initrd.c (read_module_deps): Don't leak filename. (ext2_make_initrd): Don't leak "outfile". * helper/utils.c (load_file): Don't leak a file pointer. --- helper/ext2initrd.c | 4 +++- helper/utils.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helper/ext2initrd.c b/helper/ext2initrd.c index dedc1e8..8b64e0f 10...
2011 May 31
6
[PATCH 1/4] febootstrap: Look for insmod.static, mke2fs in /sbin
--- configure.ac | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index da03c9f..7606bca 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,8 @@ dnl For ArchLinux handler. AC_CHECK_PROG(PACMAN,[pacman],[pacman],[no]) dnl Required programs, libraries. -AC_PATH_PROG([INSMODSTATIC],[insmod.static],[no])
2016 Jul 21
1
[PATCH supermin] supermin: update out-dated comments
...a/init/init.c +++ b/init/init.c @@ -138,7 +138,7 @@ main () /* XXX Because of the way we construct the module list, the * "modules" file can contain non-existent modules. Ignore those * for now. Really we should add them as missing dependencies. - * See ext2initrd.c:ext2_make_initrd(). + * See src/ext2_initrd.ml. */ if (access (line, R_OK) == 0) insmod (line); -- 1.8.3.1
2016 Feb 17
8
[PATCH supermin 0/2] Allow an alternate libc to be used for init.
v1 -> v2: - If we split out the init program into a separate init/ directory, that makes it much easier to build against an alternate libc. I tried to build against uClibc, but uClibc requires an entire build chain, which looked like it was going to be a massive ballache. Rich.
2010 Dec 07
0
builder-ubuntu febootstrap success af9f9305a0a48829392a57d24aee30978b449d1d
...9 -DHAVE_CONFIG_H -I. -I.. -Wall -I../lib -g -O2 -MT febootstrap_supermin_helper-ext2initrd.o -MD -MP -MF .deps/febootstrap_supermin_helper-ext2initrd.Tpo -c -o febootstrap_supermin_helper-ext2initrd.o `test -f 'ext2initrd.c' || echo './'`ext2initrd.c ext2initrd.c: In function ???ext2_make_initrd???: ext2initrd.c:183:10: warning: ignoring return value of ???system???, declared with attribute warn_unused_result mv -f .deps/febootstrap_supermin_helper-ext2initrd.Tpo .deps/febootstrap_supermin_helper-ext2initrd.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -Wall -I../lib -g -O2 -MT febootstrap...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
..., or determine it from the input - * files (XXX). - */ -#define APPLIANCE_SIZE ((off_t)4*1024*1024*1024) - -static void -ext2_start (const char *hostcpu, const char *appliance, - const char *modpath, const char *initrd) -{ - initialize_ext2_error_table (); - - /* Make the initrd. */ - ext2_make_initrd (modpath, initrd); - - /* Make the appliance sparse image. */ - int fd = open (appliance, O_WRONLY | O_CREAT | O_TRUNC | O_NOCTTY, 0644); - if (fd == -1) - error (EXIT_FAILURE, errno, "open: %s", appliance); - - if (lseek (fd, APPLIANCE_SIZE - 1, SEEK_SET) == (off_t) -1) - error...