search for: do_mounts

Displaying 20 results from an estimated 121 matches for "do_mounts".

Did you mean: do_mount
2006 Mar 20
1
do_mounts new sysfs support?
Looking at do_mounts.c, it does not seem to support the "major:minor" syntax exported in 'newer' sysfs (according to linux-2.6.15.6/init). The following is untested, but might work nicely... I will fully test this when I get home later today. PS, I also added some error output when it fails to parse...
2012 Mar 08
3
[PATCH 0/3] kinit: Allow mount options
This patch series allows user-specified mount commands to be sent in via kernel command line ("kinit_mount=...") or via an embedded /etc/fstab file. The first patch is a cleanup of a patch sent last November by San Mehat (http://web.archiveorange.com/archive/v/EazJNBMORV2U7E0coh5h); the next two are small improvements or bug fixes.
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
...options can be specified; they are evaluated in the order they appear in the command-line. Signed-off-by: San Mehat <san at google.com> --- Things I'd like to change: - Move string option parsing into mount_block() - ro, bind - Handle bind mounts in /etc/fstab entries --- usr/kinit/do_mounts.c | 106 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 104 insertions(+), 2 deletions(-) diff --git a/usr/kinit/do_mounts.c b/usr/kinit/do_mounts.c index 3ffac91..5d36385 100644 --- a/usr/kinit/do_mounts.c +++ b/usr/kinit/do_mounts.c @@ -7,6 +7,7 @@ #include <string.h>...
2005 Jan 05
0
[PATCH] kinit/do_mounts.c:name_to_dev_t()
kinit/do_mounts.c:name_to_dev_t() has an inverted logic problem and also doesn't return the correct value for "/dev/nfs". --- klibc-0.194/kinit/do_mounts.c.orig 2005-01-05 01:59:29.250868616 -0700 +++ klibc-0.194/kinit/do_mounts.c 2005-01-05 02:34:30.486432256 -0700 @@ -103,7 +103,7 @@ if ( name[0...
2003 May 22
0
[PATCH 2.5.69 3/3] Bandaids for gen_init_cpio and initramfs
...binary from usr and stuff it into the cpio archive as /sbin/init. This is obviously a crock, but it suffices for testing until something sane is done about integrating klibc into the kernel tree. The patch also adds a bit of instrumentation to initramfs.c, to try to help flush out bug 740. init/do_mounts.c | 2 +- init/initramfs.c | 18 +++++++----------- usr/Makefile | 2 +- usr/gen_init_cpio.c | 26 +++++++++++++++++++++++--- 4 files changed, 32 insertions(+), 16 deletions(-) # This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
...d kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce checkpatch noise [klibc] fstype: minor checkpatch fixes [klibc] nfsmount: various checkpatch fixes [klibc] kinit: checkpatch cleanup usr/kinit/devname.c | 6 +++- usr/kinit/do_mounts.c | 7 +++-- usr/kinit/do_mounts.h | 8 +++--- usr/kinit/do_mounts_md.c | 8 +++--- usr/kinit/fstype/fstype.c | 20 ++++++++++----- usr/kinit/ipconfig/dhcp_proto.c | 2 +- usr/kinit/ipconfig/main.c | 42 ++++++++++++++++----------------- usr/ki...
2010 Mar 02
17
[PATCH 00/16] External building, update for 2.6.33 and multiple root devices.
The following patchset implements 3 seperate series of changes. External Building ================= Patches 1 through 8 enable to use of klibc's build system while leaving the src tree pristine (and potentially read only). Specifically: - srctree=<Sources for klibc> - objtree=<Ouput directory for klibc> - KLIBCKERNELSRC=<Kernel sources> - KLIBCKERNELOBJ=<Kernel
2003 Nov 13
2
early userspace goals
Hi, I've been messing around with the early userspace for the last couple days. What are the goals of early userspace? Is the end goal to use it as an initrd replacement or is it simply to do all the mounting (nfsroot, initrd, hard disk) that is currently done in init/do_mounts*? thanks mh -- Martin Hicks Wild Open Source Inc. mort@wildopensource.com 613-266-2296
2006 Mar 22
1
[patch] trivial cleanup
...} else if (!S_ISDIR(st.st_mode)) { - fprintf(stderr, "NFS-Root: '%s' not a directory\n", path); + fprintf(stderr, "%s: '%s' not a directory\n", progname, path); exit(1); } } @@ -276,8 +276,6 @@ check_path("/root"); do_mounts(cmdc, cmdv); - /* do_mounts cd's to /root so below tests /root/old_root */ - check_path("old_root"); if (mnt_procfs == 1) umount2("/proc", 0);
2005 Jan 05
1
[PATCH] kinit/kinit.c
...improves readability by using get_arg(). --- klibc-0.194/kinit/kinit.c.orig 2005-01-05 15:40:15.468305608 -0700 +++ klibc-0.194/kinit/kinit.c 2005-01-05 15:41:44.400785816 -0700 @@ -246,8 +251,9 @@ do_ipconfig(cmdc, cmdv); check_path("/root"); - check_path("/old_root"); do_mounts(cmdc, cmdv); + /* do_mounts cd's to /root so below tests /root/old_root */ + check_path("old_root"); #ifndef INI_DEBUG if (pivot_root(".", "old_root") == -1) { @@ -255,6 +261,8 @@ ret = 2; goto bail; } + /* the below chdir() is good style after a pivot...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/dmesg.c | 1 - usr/utils/losetup.c | 4 +--- usr/utils/mkfifo.c | 1 - usr/utils/nuke.c | 1 - usr/utils/umount.c | 1
2003 Oct 13
5
initramfs as an initrd replacement
...y own for the kernel source (plain 2.6.0-test5). Everything gets unpacked just fine during boot. Somehow I was expecting that there would be a way to have it execute its own /sbin/init and stay in ramfs - but I do not know how to get this to work. The best I could come up with was modifying /init/do_mounts.c to skip over all the initrd loading stuff - then it worked. My question is, is there a way to use an initramfs archive as a rootfilesystem, without patching the kernel source? (Further more, depending on some conditions the system may or may not have to pivot_root to an nfs or ide-disk based...
2014 Sep 09
2
Re: CoreOS support
Unfortunately this is a prebuilt proxmox server which is running on debian wheezy and I cannot even install the latest version of libguesfs because of this. On Sep 9, 2014, at 10:18 PM, Richard W.M. Jones <rjones@redhat.com> wrote: > On Tue, Sep 09, 2014 at 08:22:37PM +0300, Keresztes Péter-Zoltán wrote: > [...] > > The btrfs driver in your kernel is unable to mount one of the
2006 Jun 10
1
PXELINUX with Kernel 2.6.15.4: VFS: Cannot open root device "hde1" or unknown-block(0, 0)
...mount the root-fs on exit of "linuxrc". Before finising "linuxrc" I can work on it, start a "bash"-shell, do all sorts of linux-cmds on the root-fs... But I think I oversee a (tiny) thing. I've put some "printk" statements in kernel's "init/do_mounts.c" and "init/do_mounts_initrd.c". I found out that in function "void __init mount_block_root(char *name, int flags)" of "init/do_mounts.c" there is the statement ... int err = do_mount_root(name, p, flags, root_mount_data); ... The value of "name" is &...
2010 Apr 28
1
[PATCH] RFC: Running initscripts from kinit
For our platforms, we'd like to embed several different userland scripts / programs that are executed before we have mounted the root filesystem as part of the initramfs payload. Specifically, I'd like to have multiple scripts executed before do_mounts(), so I coded up this simple do_initscripts function that executes all executables found in /etc/init.d in alphabetically sorted order. I realize now that this could be all simplified to blindly calling: system("/etc/rc.sysinit"); or similar though and leaving the drop directory handli...
2004 Mar 09
4
[PATCH] kinit
...@@ char *get_arg(int argc, char *argv[], co for (i = 1; i < argc; i++) { if (argv[i] && strncmp(argv[i], name, len) == 0 && - (argv[i][len] == '\0')) { + (argv[i][len] != '\0')) { ret = argv[i] + len; break; } --- klibc-0.115_dev/kinit/do_mounts.c 2003-06-01 08:21:09.000000000 +0200 +++ klibc-0.115/kinit/do_mounts.c 2004-03-10 00:11:55.000000000 +0100 @@ -24,7 +24,7 @@ try_name(char *name, int part) char buf[BUF_SZ]; int range; dev_t res; - char *s; + char *s, *p; int len; int fd; @@ -39,6 +39,11 @@ try_name(char *name, int par...
2013 Feb 27
2
ocfs2 bug reports, any advices? thanks
Hi, I setup two nodes, 192.168.20.20, and 192.168.20.21, The os is Ubuntu1204 with Kernel version 3.0: root at Server21:~# uname -a Linux Server21 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Server20 reboot for the disconnection with iSCSI SAN, so Server20 recovery resource locks for Server21. Server20: Feb 27 09:29:31 Server20 kernel:
2013 Feb 27
2
ocfs2 bug reports, any advices? thanks
Hi, I setup two nodes, 192.168.20.20, and 192.168.20.21, The os is Ubuntu1204 with Kernel version 3.0: root at Server21:~# uname -a Linux Server21 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Server20 reboot for the disconnection with iSCSI SAN, so Server20 recovery resource locks for Server21. Server20: Feb 27 09:29:31 Server20 kernel:
2006 Jul 11
0
[rfc] standalone kinit/resume
...files changed, 100 insertions(+), 71 deletions(-) diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild index 0000e89..7669ecb 100644 --- a/usr/kinit/Kbuild +++ b/usr/kinit/Kbuild @@ -2,19 +2,21 @@ # # Kbuild file for kinit # -static-y := kinit +static-y := kinit static/resume kinit-y := kinit.o do_mounts.o ramdisk_load.o initrd.o kinit-y += name_to_dev.o devname.o kinit-y += getarg.o getintfile.o open.o readfile.o xpio.o -kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o resume.o +kinit-y += do_mounts_md.o do_mounts_mtd.o nfsroot.o resumelib.o kinit-y += ipconfig/ kinit-y += nfsmount/...
2003 May 22
0
Re: klibc and 2.6
...ndent as possible, and are in BitKeeper format. * ipconfig-2.5.69.patch removes ipconfig from the kernel, and prevents CONFIG_ROOT_NFS from working. * nfsroot-2.5.69.patch removes nfsroot from the kernel. * initramfs-2.5.69.patch (requires the nfsroot patch) stops do_mounts from doing anything if the kernel is passed root=/dev/nfs or root=initramfs. This is a stopgap until the rest of the junk in init/do_mounts gets moved to userspace. * klibc-2003-05-22.tar.bz2 is the latest CVS snapshot of the klibc tree. * kinit-2003-05-22.bin i...