Displaying 11 results from an estimated 11 matches for "ms_move".
Did you mean:
ms_mode
2004 Jun 08
2
klibc-0.130: s390, run-init
OK, I have just pushed out klibc-0.130; it significantly updates the run-init
program (again... PLEASE TEST IN A SAFE ENVIRONMENT) based on, but not
identical to, Alexander's suggestions; it also adds s390/x patches from Arnd
Bergmann.
-hpa
2016 Jan 17
1
[PATCH klibc] run-init: Add dry-run mode
...@@ -186,13 +186,15 @@ const char *run_init(const char *realroo
/* Okay, I think we should be safe... */
- /* Delete rootfs contents */
- if (nuke_dir("/"))
- return "nuking initramfs contents";
-
- /* Overmount the root */
- if (mount(".", "/", NULL, MS_MOVE, NULL))
- return "overmounting root";
+ if (!dry_run) {
+ /* Delete rootfs contents */
+ if (nuke_dir("/"))
+ return "nuking initramfs contents";
+
+ /* Overmount the root */
+ if (mount(".", "/", NULL, MS_MOVE, NULL))
+ return "overmo...
2011 Jul 13
9
[PATCH 0/8] switch_root() enhancements
On a train ride to Bruxelles, brought out my axe and directly attacked
run_init(8). run_init(8) is dead, long live switch_root(8).
The next run on switch_root(8) involves fdopendir,
so another push for the upcoming stdio 1.6 branch.
The following is boot tested with initramfs-tools,
kinit(8) tests would very much be appreciated!?
Michal Suchanek (1):
[klibc] switch_root: Fix single file
2006 Sep 28
1
ramfs to tmpfs
...o compile on glibc by including constants that the
always-behind shipped glibc headers may not include. Classic example
on why the lack of ABI headers screw us up. */
#ifndef TMPFS_MAGIC
# define TMPFS_MAGIC 0x01021994
#endif
#ifndef RAMFS_MAGIC
# define RAMFS_MAGIC 0x858458f6
#endif
#ifndef MS_MOVE
# define MS_MOVE 8192
#endif
#define NEWROOT "/newroot"
#define CMDLINE "/proc/cmdline"
#define MEMINFO "/proc/meminfo"
static const char *program; // argv[0]
static char newroot[512]; // where newroot will be
static char **initargs; // argv
static struct stat root_...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...ontents */
- if (nuke_dir("/"))
- return "nuking initramfs contents";
+ if (!dry_run) {
+ /* Delete rootfs contents */
+ if (nuke_dir("/"))
+ return "nuking initramfs contents";
- /* Overmount the root */
- if (mount(".", "/", NULL, MS_MOVE, NULL))
- return "overmounting root";
+ /* Overmount the root */
+ if (mount(".", "/", NULL, MS_MOVE, NULL))
+ return "overmounting root";
+ }
/* chroot, chdir */
if (chroot(".") || chdir("/"))
@@ -205,12 +207,24 @@ const char *...
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.
2019 Apr 18
1
[PATCH] Allow the initramfs to be persisted across root changes
...;/"))
+- return "nuking initramfs contents";
++ if (!persist_initramfs) {
++ /* Delete rootfs contents */
++ if (nuke_dir("/"))
++ return "nuking initramfs contents";
++ }
+
+ /* Overmount the root */
+ if (mount(".", "/", NULL, MS_MOVE, NULL))
diff --git a/debian/patches/series b/debian/patches/series
index f13f4631..5be39790 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
resume-backward-compatibility-for-resume_offset.patch
klibc-klcc-enable-stripping-even-if-config_debug_inf.patch
+run-init-all...
2019 Apr 18
0
[PATCH] Allow the initramfs to be persisted across root changes
...dir("/"))
- return "nuking initramfs contents";
+ if (!persist_initramfs) {
+ /* Delete rootfs contents */
+ if (nuke_dir("/"))
+ return "nuking initramfs contents";
+ }
/* Overmount the root */
if (mount(".", "/", NULL, MS_MOVE, NULL))
--
2.21.0.392.gf8f6787159e-goog
2019 Apr 28
0
[klibc:master] run-init: Allow the initramfs to be persisted across root changes
...dir("/"))
- return "nuking initramfs contents";
+ if (!persist_initramfs) {
+ /* Delete rootfs contents */
+ if (nuke_dir("/"))
+ return "nuking initramfs contents";
+ }
/* Overmount the root */
if (mount(".", "/", NULL, MS_MOVE, NULL))
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of
klibc.
Ben.
Ben Hutchings (1):
[klibc] run-init: Add dry-run mode
Jay Vosburgh (1):
[klibc] ipconfig: Use separate sockets for DHCP from multiple
interfaces
Mathieu Trudel-Lapierre (1):
[klibc] ipconfig: Set broadcast when sending DHCPREQUEST and
DHCPDISCOVER
YunQiang Su (1):
[klibc] mips: setjmp.S: don't
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
.../utils/mount_opts.c
index 98f58cf..05d1729 100644
--- a/usr/utils/mount_opts.c
+++ b/usr/utils/mount_opts.c
@@ -21,6 +21,9 @@ static const struct mount_opts options[] = {
{"dirsync", MS_DIRSYNC, MS_DIRSYNC, 0},
{"exec", MS_NOEXEC, 0, MS_NOEXEC},
{"move", MS_TYPE, MS_MOVE, 0},
+ {"nodev", MS_NODEV, MS_NODEV, 0},
+ {"noexec", MS_NOEXEC, MS_NOEXEC, 0},
+ {"nosuid", MS_NOSUID, MS_NOSUID, 0},
{"recurse", MS_REC, MS_REC, 0},
{"remount", MS_TYPE, MS_REMOUNT, 0},
{"ro", MS_RDONLY, MS_RDONLY, 0},