debian/0000755000000000000000000000000011765735722007205 5ustar debian/compat0000644000000000000000000000000211765735722010403 0ustar 5 debian/control0000644000000000000000000000250111765735722010606 0ustar Source: rootstrap Section: utils Priority: optional Maintainer: User Mode Linux Maintainers Uploaders: Mattia Dongili Build-Depends: debhelper (>> 5.0.0), docbook-to-man Standards-Version: 3.9.3 Package: rootstrap Architecture: i386 amd64 Depends: python, debootstrap (>= 0.3.0), dpkg (>= 1.9.19), user-mode-linux, ${misc:Depends} Recommends: uml-utilities Suggests: dhcp3-client, dhcp3-server Description: Tool for building complete Linux filesystem images Rootstrap was originally written to provide a facility for building filesystems for use with User-mode Linux, but can be useful in other applications as well. . It uses a modular set of shell scripts to create the filesystem image, install a base system, and customize it for a particular application. Currently, it only builds Debian systems, but the architecture is such that other base systems could be used instead. . Use of rootstrap does not require root access, or special privileges of any kind. This is because it builds the filesystem inside a User-mode Linux system running under an unprivileged uid. . Filesystem creation with rootstrap is quick and painless. With a local mirror and a single command, a fresh Debian filesystem can be created in about 3 minutes on relatively modest hardware. debian/dirs0000644000000000000000000000002611765735722010067 0ustar etc/rootstrap/workdir debian/rules0000755000000000000000000000300311765735722010261 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/rootstrap. $(MAKE) install DESTDIR=$(CURDIR)/debian/rootstrap # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot # dh_installdebconf dh_installdocs dh_installexamples # dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installman dh_installinfo # dh_undocumented dh_installchangelogs dh_link dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_installdeb # dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/copyright0000644000000000000000000000205111765735722011136 0ustar This package was debianized by Matt Zimmerman on Tue, 29 Jan 2002 03:58:56 -0500. It has no distribution site of its own. Upstream Author: Matt Zimmerman Copyright: rootstrap Copyright (C) 2002 Matt Zimmerman This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, a copy of the GPL may be found in /usr/share/common-licenses/GPL. debian/source/0000755000000000000000000000000011765735722010505 5ustar debian/source/format0000644000000000000000000000001411765735722011713 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000003470511765735722011070 0ustar rootstrap (0.3.25-1) unstable; urgency=low * Remove MAKEDEV calls as they are no-ops and udev should be used. * Switch to dpkg-source 3.0 (quilt) format * Fix all Linitian warnings: - debhelper-but-no-misc-depends rootstrap - debian-rules-missing-recommended-target build-arch - debian-rules-missing-recommended-target build-indep - ancient-standards-version 3.7.3 (current is 3.9.3) - description-synopsis-starts-with-article -- Mattia Dongili Wed, 13 Jun 2012 06:51:44 +0900 rootstrap (0.3.24-6.1) unstable; urgency=low * Non-maintainer upload. * Don't use string exceptions (closes: #585352); they were removed in Python 2.6. Thanks to Sandro Tosi for the bug report and to Riccardo Murri for the patch. * Remove Stefano Melchior from Uploaders (closes: #514671). Thanks to Sandro Tosi for the bug report. -- Jakub Wilk Tue, 17 Jan 2012 18:29:05 +0100 rootstrap (0.3.24-6) unstable; urgency=high * use the stable release in the default rootstrap.conf -- Mattia Dongili Sat, 29 Jan 2011 19:05:37 +0900 rootstrap (0.3.24-5) unstable; urgency=low * use Lenny as a default release in the default rootstrap.conf -- Mattia Dongili Sat, 26 Jul 2008 12:15:44 +0900 rootstrap (0.3.24-4) unstable; urgency=low * handle the case where no /etc/timezone exists and just copy /etc/localtime instead (Closes: #446795) * use /sbin/MAKEDEV as the link from /dev/ is not provided anymore (Closes: #446729) * Remove long time inactive uploaders * bump Standards-version to 3.7.3 (lintian warning) -- Mattia Dongili Sun, 30 Dec 2007 16:34:41 +0900 rootstrap (0.3.24-3) unstable; urgency=low * build also on amd64 * use debian/compat and bump debhelper dependency -- Mattia Dongili Sun, 27 May 2007 20:48:44 +0900 rootstrap (0.3.24-2) unstable; urgency=low * install Etch by default (Closes: #400135) -- Mattia Dongili Fri, 24 Nov 2006 18:31:59 +0100 rootstrap (0.3.24-1) unstable; urgency=low * correctly write the timezone file in the guest FS (Closes: #388055) * try to print descriptive error messages when a module fails (Closes: #388061) * use /dev/ubda not /dev/ubd0 in /etc/fstab (Closes: #388121) * allow debconf preseeding using files both in $WORKDIR or $HOST (Closes: #387679) * fix apt_preferences emtpy line handling. (Closes: #372901) * document umlargs in rootstrap.conf. * disable logfile usage if debugging is enabled. -- Mattia Dongili Sun, 12 Nov 2006 18:05:42 +0100 rootstrap (0.3.23-1) unstable; urgency=low * test for base-config executable in the base-config module (Closes: #374582). * fix reiserfs invocation, thanks to Andreas Beckmann (Closes: #372828). * allow mounting the hostfs to /lib/modules. (Closes: #377035); * fix root password handling in base-config. * unmount /proc after using it in modules/uml. (Closes: #372905) * disable hwclock on the newly created image, thanks to Matthew Palmer. (Closes: #311037) * allow using the --force-yes apt switch to install from untrusted sources. (Closes: #372937) * allow configuring /etc/apt/preferences and /etc/apt/apt.conf in the target FS, thanks to Andreas Beckmann. (Closes: #372901) * allow preseeding Debconf values. (Closes: #372906) * the manpage has been fed enough. (Closes: #294214) -- Mattia Dongili Thu, 31 Aug 2006 20:51:43 +0200 rootstrap (0.3.22-1) unstable; urgency=low * ubd dev missing: updated mkfs and mount modules to create it (Closes: #342694) * updated Standards depedency to the latest (3.7.2) * drop versioned dependencies on user-mode-linux allows rootstrap to work with kernel-package self-built kernels. (Closes: #275410) (Closes: #282914) (Closes: #320410) * ensure that the UML kernel is able to find uml_net (Closes: #304461) * add reference of the hostfs need on man page (Closes: #300221) * implement a "sources" option for the [debian] modules to let users give their favourite repositories (Closes: #172296) -- Stefano Melchior Sun, 21 May 2006 23:19:38 +0200 rootstrap (0.3.21-1) unstable; urgency=low * If there are no processes left running which use the target filesystem, don't let the (failing) fuser call abort the entire script (Closes: #255531) -- Matt Zimmerman Mon, 21 Jun 2004 12:08:06 -0700 rootstrap (0.3.20-1) unstable; urgency=low * Only pay attention to the [network]/gateway option when not using uml=dhcp * Divert start-stop-daemon, as debootstrap does, while installing packages with apt * Use fuser to kill off any processes using the target root fs, so that it can be unmounted -- Matt Zimmerman Sun, 6 Jun 2004 11:28:16 -0700 rootstrap (0.3.19-1) unstable; urgency=low * The initialsize/freespace settings seem to confuse people; increase initialsize and set freespace to zero, to get a 1GB sparse image with no resizing by default (Closes: #205972) -- Matt Zimmerman Sun, 14 Mar 2004 18:34:20 -0800 rootstrap (0.3.18-1) unstable; urgency=low * New base-config module, which invokes base-config to configure the base system. This currently only works on sarge+ because it uses debconf-set-selections, and it doesn't really work there either due to limitations in base-config (it doesn't honor some important pre-seeded debconf responses) * Set default root password to 'rootstrap' in base-config module (Closes: #224430) * New tasksel module * Fix -u/--umlargs, rename to --umlarg and have it only take one argument -- Matt Zimmerman Mon, 16 Feb 2004 11:33:31 -0800 rootstrap (0.3.17-1) unstable; urgency=low * Make "imagefile" one word on the man page, so it's clear that it's a single argument * -s is in megabytes, like initialsize in rootstrap.conf * Make the network/control parameter, used with the daemon transport, optional, since UML now has a reasonable compiled-in default -- Matt Zimmerman Fri, 19 Sep 2003 21:42:37 -0400 rootstrap (0.3.16-1) unstable; urgency=low * Set the hostname in the rootstrapped system, rather than leaving it blank (some packages can't install without a hostname). Thanks to Mike Snitzer for working this out rootstrap still doesn't really configure the base system (suggestions welcome; see #211397) * set -e on more modules -- Matt Zimmerman Wed, 17 Sep 2003 10:19:47 -0400 rootstrap (0.3.15-1) unstable; urgency=low * Add -c/--config option to specify a config file to read -- Matt Zimmerman Mon, 15 Sep 2003 19:15:28 -0400 rootstrap (0.3.14-1) unstable; urgency=low * [modules/debian] Transfer DNS configuration into resolv.conf in the generated system * Correctly remount the hostfs-root read-only * Make some of the modules more robust, and run with set -e * [modules/{debian,network}] DHCP support for networking configuration * [rootstrap.conf] Don't exclude dhcp-client anymore * Change daemon transport syntax to match new interface (no more separate data socket) -- Matt Zimmerman Sun, 14 Sep 2003 20:46:43 -0400 rootstrap (0.3.13-1) unstable; urgency=low * Fix ext3 handling (mkfs.ext3 works fine without -j) (Closes: #199882) * Add support for uml_switch networking (Closes: #207631) -- Matt Zimmerman Mon, 1 Sep 2003 13:42:15 -0400 rootstrap (0.3.12-1) unstable; urgency=low * Increase default initalsize to 256, which is enough room for base+build-essential+umlrun on i386. Note that this is created sparsely, and shrunk down to reflect freespace if it is not used * Depend on more recent user-mode-linux, for new hostfs-root syntax (Closes: #197480) * Really fix the stupid man page problem (Closes: #191767) -- Matt Zimmerman Thu, 19 Jun 2003 16:03:02 -0400 rootstrap (0.3.11-1) unstable; urgency=low * When network configuration is enabled in the debian module, configure the loopback interface as well * Fiddle with man page so that it doesn't eat a line of input. I hate groff (Closes: #191767) * Add network/slirp config option, primarily for use with the patch in #175093 (hopefully will be merged soon) -- Matt Zimmerman Sat, 3 May 2003 13:54:51 -0400 rootstrap (0.3.10-1) unstable; urgency=low * Fix the debian module's 'install' directive to be non-interactive * Patch from Brian May to invoke dpkg in the target rather than using dpkg --root (Closes: #189355) * Handle building on a block device a bit more gracefully (I hope) (Closes: #188047) -- Matt Zimmerman Sun, 20 Apr 2003 15:39:38 -0400 rootstrap (0.3.9-1) unstable; urgency=low * Use new syntax for mounting root hostfs * Only clobber regular files (Closes: #185672) -- Matt Zimmerman Fri, 4 Apr 2003 21:12:49 -0500 rootstrap (0.3.8-1) unstable; urgency=low * Use DEBIAN_FRONTEND=noninteractive, not Noninteractive (Closes: #175958) * Preconfigured tap support (Closes: #166152) * Use long integers so that larger image sizes work (Closes: #183375) * Add vim magic comment (Closes: #183350) * Suggests: slirp -- Matt Zimmerman Tue, 4 Mar 2003 19:39:49 -0500 rootstrap (0.3.7-1) unstable; urgency=low * Add support for the slirp transport. For this to be really useful, you must rebuild slirp with the FULL_BOLT option for reasonable performance. However, once this is done, networking works with no address configuration or root access. -- Matt Zimmerman Thu, 9 Jan 2003 21:37:46 -0500 rootstrap (0.3.6-1) unstable; urgency=low * Update and clarify man page * Fix one-character error which prevent the -u/--umlargs option fram working -- Matt Zimmerman Mon, 21 Oct 2002 22:16:05 -0400 rootstrap (0.3.5-1) unstable; urgency=low * Add support to the debian module for saving the network configuration to /etc/network/interfaces * Add pointer to GPL in copyright (thanks, linda) -- Matt Zimmerman Sat, 21 Sep 2002 18:43:48 -0400 rootstrap (0.3.4-1) unstable; urgency=low * Fix default configuration to use a valid Debian mirror. Thanks to smoerk@gmx.de for pointing this out. * s/DEBCONF_FRONTEND/DEBIAN_FRONTEND/ so that we correctly get the noninteractive frontend. This should cut down greatly on debconf warnings. * Fix a bug whereby if a module was overloaded by a local version, the original was still run. Chaos ensued when both modules executed. -- Matt Zimmerman Thu, 25 Jul 2002 13:36:09 -0400 rootstrap (0.3.3-1) unstable; urgency=low * Don't fail if no network configuration is specified. This allows installations from local mirrors and CDs. (Closes: #151478) * Be more conservative, and fail the entire build process if any module fails. This makes it harder to overlook important errors. * Clarify documentation for the debian/mirror option, which must be a URL understood by debootstrap (Closes: #151482) -- Matt Zimmerman Sun, 30 Jun 2002 19:41:56 -0400 rootstrap (0.3.2-1) unstable; urgency=low * Mount the working directory as a separate hostfs filesystem, rather than assuming it will be available via the root-hostfs mount. This makes it possible to use /tmp as your workspace on the host (Closes: #147712) -- Matt Zimmerman Thu, 23 May 2002 20:02:09 -0400 rootstrap (0.3.1-2) unstable; urgency=low * Fix build-depends to reflect that we use docbook-to-man again (Closes: #146590) -- Matt Zimmerman Fri, 10 May 2002 23:57:08 -0400 rootstrap (0.3.1-1) unstable; urgency=low * Fix the mkisofs module so that it works with the new hostfs setup * Remove build-dependency on mkcramfs * Update uml module to add an fstab entry for /proc -- Matt Zimmerman Tue, 7 May 2002 23:10:43 -0400 rootstrap (0.3-1) unstable; urgency=low * Get rid of the cramfs hack, instead use tmpfs filesystems to overlay the parts of the host filesystem that we don't want (such as /etc) * Fix all modules to use $TARGET instead of /target, as the target mount point has moved (and could again). All custom modules must be updated to use $TARGET. * Add a setting to rootstrap.conf to allow configuration of a nameserver (Closes: #143171) -- Matt Zimmerman Wed, 17 Apr 2002 22:15:55 -0400 rootstrap (0.2.4-1) unstable; urgency=low * Build the man page with docbook-to-man instead of docbook2man, because the latter seems to garble the output (Closes: #140857) * Append /sbin:/usr/sbin to PATH when building, to ensure that mkcramfs can be found (Closes: #142130) -- Matt Zimmerman Wed, 10 Apr 2002 23:19:25 -0400 rootstrap (0.2.3-1) unstable; urgency=low * New code release - Fix a bug in the creation of ubd devices by the uml module -- Matt Zimmerman Thu, 28 Mar 2002 22:13:26 -0500 rootstrap (0.2.2-1) unstable; urgency=low * New code release - Add an option to the debian module to install additional packages with apt - Make the installation of uml kernel modules an optional behaviour - Use DEBCONF_FRONTEND=Noninteractive to suppress warning messages about debconf falling back to it from other frontends - Manually create a ubd0 device for UML, since potato's MAKEDEV doesn't understand ubd - Append /sbin:/usr/sbin to PATH so that we can always find tune2fs if it is installed (Closes: #138398) -- Matt Zimmerman Sat, 16 Mar 2002 16:14:01 -0500 rootstrap (0.2.1-1) unstable; urgency=low * New code release - Pass devfs=mount to UML when booting the initial filesystem, since the latest packages do not mount it by default -- Matt Zimmerman Wed, 13 Mar 2002 09:26:42 -0500 rootstrap (0.2-1) unstable; urgency=low * New code release - Includes man page (Closes: #137849) - No need to try to remount root read-only now that cramfs is used (old cruft) - Removed unused -p option; I forget what it was intended to do * Depend on debootstrap >= 0.1.16.4, because that version fixes --include -- Matt Zimmerman Tue, 12 Mar 2002 23:54:25 -0500 rootstrap (0.1-1) unstable; urgency=low * Initial Release. -- Matt Zimmerman Tue, 29 Jan 2002 03:58:56 -0500