[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#682015: debootstrap: trouble with examples both in manpages and wiki



Package: debootstrap
Version: 1.0.42
Severity: minor


Hi,

Regarding the steps in manpage examples section, there are the following steps:

            main # debootstrap sid sid-root http://ftp.us.debian.org/debian/
            [ ... watch it download the whole system ]
            main # echo "proc sid-root/proc proc defaults 0 0" >> /etc/fstab
            main # mount proc sid-root/proc -t proc
            main # echo "sysfs sid-root/sys sysfs defaults 0 0" >> /etc/fstab
            main # mount sysfs sid-root/sys -t sysfs
            main # cp /etc/hosts sid-root/etc/hosts
            main # chroot sid-root /bin/bash

and also something very similar on wiki (http://wiki.debian.org/Debootstrap).

Is there really a need to do all those steps? If yes, in this order? Mainly by
modifying
the current (not the target) /etc/fstab before chroot with target paths (sid-
root relative ones)
in it?

Why not doing something more minimalist as the following:

            main # debootstrap sid sid-root http://ftp.us.debian.org/debian/
            [ ... watch it download the whole system ]
            main # LANG=C chroot sid-root /bin/bash
            main # mount proc /proc -t proc
            main # mount sysfs /sys -t sysfs
            [ ... go further the installation ]

Is the objective to have those 2 mounts explicitly into the target fstab (sid-
root/etc/fstab)?

Also, why not keeping sid-root/etc/hosts as the default one produced by
debootstrap?
This more or less related to network configuration.

Finally, according to 'Debian GNU/Linux Installation Guide -- Appendix D.3:
Installing
Debian GNU/Linux from a Unix/Linux System', the /dev directory have to be
updated
after the chroot as the following:

# cd /dev
# MAKEDEV generic

but MAKEDEV is not immediately available after debootstrap+chroot, so unless an
'apt-get install makedev', it is not possible to do so. Is this still the go
way to proceed
or is there a new way to do?
I suppose that something as to be done regarding /dev before proceeding further
the instruction of this Guide such as for instance the boot-loader
installation.

# apt-get install linux-image-XXXX
# apt-get install grub-pc
# tasksel install standard

Also what about the setting of root password before the "reboot"?

Regards,
Patrice



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.4-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debootstrap depends on:
ii  wget  1.13.4-3

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-4+b1

debootstrap suggests no packages.

-- no debconf information


Reply to: