missing /dev/console in debootstrap --foreign, a bug or not ?
On Tue, Jan 20, 2009, Scott James Remnant wrote:
> Is there an initramfs at all? I had a vague belief that the default
> in-kernel initramfs included a /dev/console?
I think the idea is to boot an Ubuntu kernel without the usual
initramfs, complete the debootstrap in the native environment (e.g.
qemu-system-arm), and then generate a real initramfs.
I don't know what kernel includes as a fallback, but would love to know
where I could find out (never heard of in-kernel initramfs).
> > I think it wouldn't hurt if debootstrap's second stage would create
> > /dev/console if it's required and missing, but I'm not sure whether we
> > can actually start debootstrap's second stage.
> debootstrap does call MAKEDEV with a few essentials (including console)
> and unpacks this during the first stage.
I grepped on MAKEDEV and found this in the second-stage:
/debootstrap/functions: (cd "$TARGET/dev"; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6)
and this in the source:
functions: (cd "$TARGET/dev"; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6)
Makefile:MAKEDEV := $(shell if [ -e /dev/MAKEDEV ]; then echo /dev/MAKEDEV; else echo /sbin/MAKEDEV; fi)
Makefile: (cd dev && $(MAKEDEV) std ptmx fd)
So it MAKEDEVs: fd std ptmx ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6
Which one is supposed to include /dev/console? From the man page and
the MAKEDEV source, it seems /dev/console is only created for "console"
or "generic"; "std" will create ttys, but not "console" I think.
--
Loïc Minier
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
01-20-2009, 05:31 PM
Colin Watson
missing /dev/console in debootstrap --foreign, a bug or not ?
On Tue, Jan 20, 2009 at 06:50:26PM +0100, Loïc Minier wrote:
> On Tue, Jan 20, 2009, Scott James Remnant wrote:
> > debootstrap does call MAKEDEV with a few essentials (including console)
> > and unpacks this during the first stage.
>
> I grepped on MAKEDEV and found this in the second-stage:
> /debootstrap/functions: (cd "$TARGET/dev"; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6)
>
> and this in the source:
> functions: (cd "$TARGET/dev"; /sbin/MAKEDEV fd std ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6)
> Makefile:MAKEDEV := $(shell if [ -e /dev/MAKEDEV ]; then echo /dev/MAKEDEV; else echo /sbin/MAKEDEV; fi)
> Makefile: (cd dev && $(MAKEDEV) std ptmx fd)
>
> So it MAKEDEVs: fd std ptmx ptyp ptyq vcs tty1 tty2 tty3 tty4 tty5 tty6
You should probably look at the context too. :-) That MAKEDEV call in
functions is in the setup_devices_hurd function ...
Makefile is the one that needs to be changed (and changed in my most
recent upload).
Cheers,
--
Colin Watson [cjwatson@ubuntu.com]
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
01-20-2009, 06:12 PM
Loïc Minier
missing /dev/console in debootstrap --foreign, a bug or not ?
On Tue, Jan 20, 2009, Colin Watson wrote:
> You should probably look at the context too. :-) That MAKEDEV call in
> functions is in the setup_devices_hurd function ...
I didn't have to since all occurrences proved my point! ;-)
> Makefile is the one that needs to be changed (and changed in my most
> recent upload).
Thanks a lot!
--
Loïc Minier
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
01-24-2009, 03:10 PM
Paul Sladen
missing /dev/console in debootstrap --foreign, a bug or not ?
On Tue, 20 Jan 2009, [iso-8859-1] Lo�Minier wrote:
> I don't know what kernel includes as a fallback, but would love to know
> where I could find out (never heard of in-kernel initramfs).
Appended initramfs was the original spec; that it can (in most
situations) be passed using the old initrd= is a mere coincidence.[1]
Probably initramfs images should have been generated with '.cpio' instead of
'.initrd', but it's a bit late to change that.
The no BIOS bootloader situation is a case that demostrates why initramfs
was specified as being appended to make a single file.
-Paul
[1] See http://lwn.net/Articles/14776/ for early history.
--
Why do one side of a triangle when you can do all three. Somewhere, GB.
--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel