From: Rob Landley <rob@landley.net>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Nix <nix@esperi.org.uk>, Chris Lightfoot <chris@ex-parrot.com>
Subject: Re: [uml-devel] When /tmp is not tmpfs.
Date: Sun, 27 Nov 2005 15:41:12 -0600 [thread overview]
Message-ID: <200511271541.12899.rob@landley.net> (raw)
In-Reply-To: <200511272020.52664.blaisorblade@yahoo.it>
On Sunday 27 November 2005 13:20, Blaisorblade wrote:
> > Try "rdinit=/bin/sh", that affects what init gets run on the initramfs.
> > (Assuming the initramfs has a comand shell...)
>
> Missing from Documentation/filesystems/ramfs-rootfs-initramfs.txt.
I only dredged through the source and found it shortly after posting that
document. I need to update the thing, but I'm hoping to get mdev merged into
busybox (and switch_root properly tested, and the issue of what to do
about /dev/console sorted out). Then I can put together a minimal busybox
initramfs package and reference that.
> > So this was fixed in util-linux then?
>
> Don't remember the bug.
I found it myself testing corner cases to figure out how busybox mount should
work.
> > (I know _busybox_ gets it right, but
> > that's because I took it into account in my rewrite...)
> >
> > http://www.busybox.net/lists/busybox/2005-August/015285.html
>
> I never tested --move, only --bind.
They had the same problem when I tested. The information being stored
in /etc/mtab wasn't the information actually needed to umount.
> Also, umount has other shortcomings: for instance, umount dev will
> umount /dev, even if I meant a udev mount on /mnt/gen32/dev with dev on
> first column (or something like that). I.e. umount tries to absolutize
> paths relative to /.
Try the busybox version. There were loud complaints from some of the users,
and I fixed all the ones I knew about at the time. (Although I believe I
still need to add --rbind, which is trivial..)
> Also, umount /var when /var is bind-mounted elsewhere is ambiguous, and
> I've no idea of a proper solution.
Leave the bind mount.
It's a bit like:
mount /dev/hda one
mount /dev/hda two
umount /dev/hda
The kernel umounts the most recent one, not all of them. I need to upgrade
umount so that you can do "umount -a /dev/hda". Right now umount -a ignores
arguments...
It's a to-do item.
> (However, take this with a grain of salt - I'm trying to code rather than
> talking today, and I'm failing almost fully).
My to-do list is growing faster than I'm retiring items on it, but what else
is new?
> > I got the loopback functionality working just fine (to the
> > point where you don't have to specify -o loop anymore.
>
> With busybox I guess - you using it on a non-embedded system?
Yup. I'm using it in place of the gnu tools in a system capable of rebuilding
itself from source code.
http://www.landley.net/code/firmware
I had to upgrade lots of busybox in order make that work, but it does now.
(The -devel version, anyway. 1.01 is a bit behind the times. Should be a
new release around new year's.)
> I though it was thought to be _small_ and feature-limited.
It's configurable. It tries to pack as much functionality into as small a
space as it can, and lets you configure how much functionality you want.
The "everything enabled" version is around a megabyte, but that megabyte
replaces bzip2, coreutils, e2fsprogs, file, findutils, gawk, grep, inetutils,
less, modutils, net-tools, patch, procps, sed, shadow, sysklogd, sysvinit,
tar, util-linux, and vim.
> > If you try to mount
> > a file instead of a block device, it'll do the losetup for you. I'm
> > pondering adding support for "mount -o offset=12345 file.img /woot"
> > even...
>
> You get a namespace conflict that way - the day a fs supports offset=
> you're burned.
*shrug* The same argument could be made about any other argument that mount
interprets. (Currently: loop, defaults, noauto, ro, rw, nosuid, suid, dev,
nodev, exec, noexec, sync, async, remount, atime, noatime, diratime,
nodiratime, bind, move, and rbind.)
And no, I didn't invent mount interpreting any of that. I can make it depend
on loopback support (which is already a config option for mount; you can
disable features out of the apps in busybox to shrink the size).
Rob
--
Steve Ballmer: Innovation! Inigo Montoya: You keep using that word.
I do not think it means what you think it means.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-11-28 0:37 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-24 12:11 [uml-devel] When /tmp is not tmpfs Rob Landley
2005-11-24 20:40 ` Blaisorblade
2005-11-25 8:26 ` Rob Landley
2005-11-25 9:55 ` Jeff Dike
2005-11-25 9:48 ` Rob Landley
2005-11-25 10:52 ` Rob Landley
2005-11-25 11:26 ` Rob Landley
2005-11-25 14:56 ` Nix
2005-11-25 15:03 ` Chris Lightfoot
2005-11-25 15:36 ` Nix
2005-11-25 16:03 ` Rob Landley
2005-11-25 19:33 ` Nix
2005-11-25 20:18 ` Rob Landley
2005-11-25 21:04 ` Nix
2005-11-25 22:31 ` Rob Landley
2005-11-27 16:48 ` Blaisorblade
2005-11-27 18:17 ` Nix
2005-11-27 19:24 ` Rob Landley
2005-11-25 23:33 ` Blaisorblade
2005-11-26 2:12 ` Nix
2005-11-26 11:47 ` Rob Landley
2005-11-27 17:37 ` Blaisorblade
2005-11-27 18:35 ` Nix
2005-11-27 19:10 ` Blaisorblade
2005-11-27 19:43 ` Nix
2005-11-27 21:21 ` Rob Landley
2005-11-27 18:59 ` Rob Landley
2005-11-27 19:20 ` Blaisorblade
2005-11-27 21:41 ` Rob Landley [this message]
2005-11-29 16:52 ` Blaisorblade
2005-11-27 18:31 ` Nix
2005-11-28 1:07 ` Rob Landley
2005-11-29 16:08 ` Blaisorblade
2005-11-29 19:38 ` Rob Landley
2005-11-26 10:44 ` Rob Landley
2005-11-27 16:38 ` Blaisorblade
2005-11-27 18:49 ` Nix
2005-11-27 21:25 ` Rob Landley
2005-11-27 17:10 ` Blaisorblade
2005-11-25 23:46 ` Chris Lightfoot
2005-11-26 10:03 ` Rob Landley
2005-11-26 10:15 ` Chris Lightfoot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511271541.12899.rob@landley.net \
--to=rob@landley.net \
--cc=blaisorblade@yahoo.it \
--cc=chris@ex-parrot.com \
--cc=nix@esperi.org.uk \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.