summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:20 +0200
commit57cf927e8b36655351399184fecec51552feffe5 (patch)
tree537fb1e5e337d2074c7ea25c506eedbbbf6afdf9
parenteeaafbe5c0d5f2ffd87bf7d9f12c13df1bd0adf5 (diff)
downloadvyos-live-build-57cf927e8b36655351399184fecec51552feffe5.tar.gz
vyos-live-build-57cf927e8b36655351399184fecec51552feffe5.zip
Adding live-package 0.99.1-1.
-rw-r--r--ChangeLog4
-rw-r--r--debian/changelog6
-rw-r--r--make-live.84
-rwxr-xr-xmake-live.sh8
-rw-r--r--scripts/01-chroot.sh65
-rw-r--r--scripts/02-net.sh8
6 files changed, 61 insertions, 34 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cff6e57e..0140d5200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-19 Daniel Baumann <daniel@debian.org>
+
+ * Bugfixes.
+
2006-07-18 Daniel Baumann <daniel@debian.org>
* Added iso templates.
diff --git a/debian/changelog b/debian/changelog
index ac449b8e6..2b63e1025 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+live-package (0.99.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org> Mon, 24 Jul 2006 00:00:00 +0200
+
live-package (0.99-1) unstable; urgency=low
* Initial release.
diff --git a/make-live.8 b/make-live.8
index 70e499dff..fd8df5df2 100644
--- a/make-live.8
+++ b/make-live.8
@@ -24,6 +24,7 @@ make-live \- An utility for building Debian Live systems.
.IR FILE \||\| DIRECTORY \|]
.RB [\| \-\-include\-rootfs
.IR FILE \||\| DIRECTORY \|]
+.BR [\| \-\-interactive \|]
.RB [\| \-\-linux\-image
.IR FLAVOUR \|]
.RB [\| \-\-logfile
@@ -111,6 +112,9 @@ set through LIVE_INCLUDE_IMAGE environment variable.
specifies a file or directory which will be copied inside the root filesystem of
the image. Can be also set through the LIVE_INCLUDE_ROOTFS environment variable.
.TP
+.BI \-\-interactive
+lets you interactively customize the package selection.
+.TP
.BI "\-\-linux\-image " FLAVOUR
.TP
.BI "\-p, \-\-package-list " FILE
diff --git a/make-live.sh b/make-live.sh
index b0a958518..fb3349d99 100755
--- a/make-live.sh
+++ b/make-live.sh
@@ -51,7 +51,7 @@ Help ()
{
echo "make-live - An utility for building Debian Live systems."
echo
- echo "Usage: ${PROGRAM} [-a ARCHITECTURE] [-c FILE] [--clone DIRECTORY] [-d DISTRIBUTION] [--debug] [-f FILESYSTEM] [--flavour FLAVOUR] [--hook \"COMMAND...\"] [--include-image FILE|DIRECTORY] [--include-rootfs FILE|DIRECTORY] [--linux-image FLAVOUR] [--logfile FILE] [-p|--package-list FILE] [--preseed FILE] [--rootfs DIRECTORY] [-s|--section \"SECTION...\"] [--splashy [THEME]] [-t|--type TYPE] [--templates DIRECTORY] [--verbose] [LIST]"
+ echo "Usage: ${PROGRAM} [-a ARCHITECTURE] [-c FILE] [--clone DIRECTORY] [-d DISTRIBUTION] [--debug] [-f FILESYSTEM] [--flavour FLAVOUR] [--hook \"COMMAND...\"] [--include-image FILE|DIRECTORY] [--include-rootfs FILE|DIRECTORY] [--interactive] [--linux-image FLAVOUR] [--logfile FILE] [-p|--package-list FILE] [--preseed FILE] [--rootfs DIRECTORY] [-s|--section \"SECTION...\"] [--splashy [THEME]] [-t|--type TYPE] [--templates DIRECTORY] [--verbose] [LIST]"
echo
echo "Values:"
echo " Architectures: alpha, amd64, arm, hppa, i386, ia64, m68k, powerpc, s390, sparc."
@@ -110,7 +110,7 @@ Main ()
{
ARGUMENTS=`getopt --shell=sh --name="${PROGRAM}" \
--options="a:c:d:f:p:s:t:huv" \
- --longoptions="architecture:,conffile:,clone:,distribution:,debug,filesystem:,flavour:,hook:,include-image:,include-rootfs:,linux-image:,logfile:,package-list:,preseed:,rootfs:,section:,splashy::,type:,templates:,verbose" \
+ --longoptions="architecture:,conffile:,clone:,distribution:,debug,filesystem:,flavour:,hook:,include-image:,include-rootfs:,interactive,linux-image:,logfile:,package-list:,preseed:,rootfs:,section:,splashy::,type:,templates:,verbose,help,usage,version" \
-- "${@}"`
if [ "${?}" != "0" ]
@@ -165,6 +165,10 @@ Main ()
LIVE_INCLUDE_ROOTFS="${2}"; shift 2
;;
+ --interactive)
+ LIVE_INTERACTIVE="1"; shift
+ ;;
+
--linux-image)
LIVE_LINUX="${2}"; shift 2
;;
diff --git a/scripts/01-chroot.sh b/scripts/01-chroot.sh
index ba5d526a3..5528d0237 100644
--- a/scripts/01-chroot.sh
+++ b/scripts/01-chroot.sh
@@ -96,35 +96,6 @@ Chroot ()
rm ${LIVE_CHROOT}/tmp/preseed
fi
- if [ -z "${LIVE_ROOTFS}" ]
- then
- # Install packages list
- if [ ! -z "${LIVE_PACKAGE_LIST}" ]
- then
- chroots "apt-get install --yes `cat ${LIVE_PACKAGE_LIST}`"
- fi
-
- # Install extra packages
- if [ ! -z "${LIVE_PACKAGES}" ]
- then
- chroots "apt-get install --yes ${LIVE_PACKAGES}"
- fi
- fi
-
- # Copy external path into the chroot
- if [ -d "${LIVE_INCLUDE_ROOTFS}" ]
- then
- cd "${LIVE_INCLUDE_ROOTFS}"
- find . | cpio -pumd "${LIVE_CHROOT}"/
- cd "${OLDPWD}"
- fi
-
- # Execute extra command in the chroot
- if [ ! -z "${LIVE_HOOK}" ]
- then
- chroots "${LIVE_HOOK}"
- fi
-
# Add splashy and conditionally a theme
if [ ! -z "${LIVE_SPLASHY}" ]
then
@@ -151,6 +122,42 @@ Chroot ()
fi
# --- End FIXME ---
+ if [ -z "${LIVE_ROOTFS}" ]
+ then
+ if [ -z "${lIVE_INTERACTIVE}" ]
+ then
+ # Install packages list
+ if [ ! -z "${LIVE_PACKAGE_LIST}" ]
+ then
+ chroots "apt-get install --yes `cat ${LIVE_PACKAGE_LIST}`"
+ fi
+
+ # Install extra packages
+ if [ ! -z "${LIVE_PACKAGES}" ]
+ then
+ chroots "apt-get install --yes ${LIVE_PACKAGES}"
+ fi
+ else
+ # Run aptitude
+ chroots "apt-get install --yes aptitude"
+ chroots "aptitude"
+ fi
+ fi
+
+ # Copy external directory into the chroot
+ if [ -d "${LIVE_INCLUDE_ROOTFS}" ]
+ then
+ cd "${LIVE_INCLUDE_ROOTFS}"
+ find . | cpio -pumd "${LIVE_CHROOT}"/
+ cd "${OLDPWD}"
+ fi
+
+ # Execute extra command in the chroot
+ if [ ! -z "${LIVE_HOOK}" ]
+ then
+ chroots "${LIVE_HOOK}"
+ fi
+
# Clean apt packages cache
rm -f "${LIVE_CHROOT}"/var/cache/apt/archives/*.deb
rm -f "${LIVE_CHROOT}"/var/cache/apt/archives/partial/*.deb
diff --git a/scripts/02-net.sh b/scripts/02-net.sh
index 743d8b25a..1736e7468 100644
--- a/scripts/02-net.sh
+++ b/scripts/02-net.sh
@@ -7,8 +7,10 @@ Net ()
if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
then
+ mkdir "${LIVE_CHROOT}"/etc/mkinitramfs
+
# Configuring initramfs for NFS
-cat >> "${LIVE_ROOT}"/chroot/etc/mkinitramfs/initramfs.conf << EOF
+cat >> "${LIVE_CHROOT}"/etc/mkinitramfs/initramfs.conf << EOF
MODULES=netboot
BOOT=nfs
EOF
@@ -27,12 +29,12 @@ EOF
then
# Creating tarball
cd "${LIVE_ROOT}" && cd .. && \
- tar cfz netboot.tar.gz "${LIVE_ROOT}" && \
+ tar cfz netboot.tar.gz `basename "${LIVE_ROOT}"` && \
mv netboot.tar.gz "${LIVE_ROOT}"
else
# Creating tarball (debug)
cd "${LIVE_ROOT}" && cd .. && \
- tar cfvz netboot.tar.gz "${LIVE_ROOT}" && \
+ tar cfvz netboot.tar.gz `basename "${LIVE_ROOT}"` && \
mv netboot.tar.gz "${LIVE_ROOT}"
fi
}