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

Bug#627887: marked as done (add support for jasper initramfs system)



Your message dated Sat, 11 Jun 2011 09:34:08 +0000
with message-id <E1QVKa0-000300-2j@franck.debian.org>
and subject line Bug#627887: fixed in live-build 3.0~a19-1
has caused the Debian Bug report #627887,
regarding add support for jasper initramfs system
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
627887: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627887
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: live-build
Version: 3.0~a17-1
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch oneiric

The Ubuntu ARM team wrote a system called jasper whose job is to help
with booting preinstalled ext2/ext3 ARM images:

Description: Configure a preinstalled ext2/3 system image
 Jasper is a tool to configure preinstalled ext2/3 images that were
 created using the ubuntu infrastructure from the initramfs.
 Such as armel omap3/4 images in Ubuntu 10.10 and beyond.
 .
 It grows the system partition of a preinstalled ext2/3 image to the
 full size of the SD card, configures fstab, loopback networking, adds
 the UUID to the kernel cmdline and properly sets up flash-kernel for
 the kernel package post installation scripts.

It's supported by livecd-rootfs, so I needed to add support for it to
live-build as well.  From live-build's point of view, I think it
basically counts as a new initramfs system, with the wrinkles that there
shouldn't be a boot=jasper parameter (it extends the default boot=local
instead) and I don't think it needs to do the user creation bits.

Patch attached.  What do you think?

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
>From 7ed79bd4b34c58919c22e3fc502022a12b1a0b63 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@canonical.com>
Date: Wed, 25 May 2011 09:55:29 +0100
Subject: [PATCH] Add support for jasper initramfs system.

---
 manpages/en/lb_config.1             |    4 ++--
 scripts/build/lb_binary_grub        |   10 +++++++++-
 scripts/build/lb_binary_grub2       |   10 +++++++++-
 scripts/build/lb_binary_linux-image |    4 ++++
 scripts/build/lb_binary_manifest    |    5 +++++
 scripts/build/lb_binary_memtest     |    4 ++++
 scripts/build/lb_binary_net         |    4 ++++
 scripts/build/lb_binary_rootfs      |    4 ++++
 scripts/build/lb_binary_silo        |    7 ++++++-
 scripts/build/lb_binary_yaboot      |   10 +++++++++-
 scripts/build/lb_chroot_hacks       |    6 +++++-
 scripts/build/lb_config             |    2 +-
 12 files changed, 62 insertions(+), 8 deletions(-)

diff --git a/manpages/en/lb_config.1 b/manpages/en/lb_config.1
index a8a9c6f..a579ff6 100644
--- a/manpages/en/lb_config.1
+++ b/manpages/en/lb_config.1
@@ -109,7 +109,7 @@
 .br
 	[\fB\-\-includes\fR \fIPATH\fR]
 .br
-	[\fB\-\-initramfs\fR auto|none|live\-boot|casper]
+	[\fB\-\-initramfs\fR auto|none|live\-boot|casper|jasper]
 .br
 	[\fB\-\-initramfs\-compression\fR bzip2|gzip|lzma]
 .br
@@ -361,7 +361,7 @@ sets the hostname of the live system.
 \fBlb config\fR by default reads system defaults from /etc/live/build.conf and /etc/live/build.d when generating a new live system config directory. This is useful if you want to set global settings, such as mirror locations, and don't want to specify them all of the time.
 .IP "\fB\-\-includes\fR \fIPATH|none\fR" 4
 sets the path to the includes that live\-build is going to use, e.g. additional minimal documentation that you want to have on all live systems. By default, this is set to /usr/share/live/build/includes/. Choose none to disable inclusion of documentation.
-.IP "\fB\-\-initramfs\fR auto|none|live\-boot|casper" 4
+.IP "\fB\-\-initramfs\fR auto|none|live\-boot|casper|jasper" 4
 sets the name of package that contains the live system specific initramfs modification. By default, auto is used, which means that at build time of the image rather than on configuration time, the value will be expanded to casper when building ubuntu systems, to live\-boot for all other systems. Using 'none' is useful if the resulting system image should not be a live image (experimental).
 .IP "\fB\-\-initramfs\-compression\fR bzip2|gzip|lzma]
 defines the compression program to be used to compress the initramfs. Defaults to gzip.
diff --git a/scripts/build/lb_binary_grub b/scripts/build/lb_binary_grub
index d796750..7f70090 100755
--- a/scripts/build/lb_binary_grub
+++ b/scripts/build/lb_binary_grub
@@ -68,7 +68,7 @@ Grub_live_entry ()
 	APPEND="${4}"
 
 	LINUX_LIVE="${LINUX_LIVE}\ntitle\t\tDebian GNU/Linux - ${LABEL}"
-	LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}"
+	LINUX_LIVE="${LINUX_LIVE}\nkernel\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}"
 	LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}"
 }
 
@@ -125,6 +125,10 @@ case "${LB_INITRAMFS}" in
 	live-boot)
 		INITFS="live"
 		;;
+
+	*)
+		INITFS=""
+		;;
 esac
 
 # Setting destination directory
@@ -135,6 +139,10 @@ case "${LB_BINARY_IMAGES}" in
 				DESTDIR_LIVE="binary/casper"
 				;;
 
+			jasper)
+				DESTDIR_LIVE="binary/jasper"
+				;;
+
 			live-boot)
 				DESTDIR_LIVE="binary/live"
 				;;
diff --git a/scripts/build/lb_binary_grub2 b/scripts/build/lb_binary_grub2
index 8f076b2..4cb344b 100755
--- a/scripts/build/lb_binary_grub2
+++ b/scripts/build/lb_binary_grub2
@@ -68,7 +68,7 @@ Grub_live_entry ()
 	APPEND="${4}"
 
 	LINUX_LIVE="${LINUX_LIVE}\nmenuentry \"Debian GNU/Linux - ${LABEL}\" {"
-	LINUX_LIVE="${LINUX_LIVE}\nlinux\t\t/${KERNEL} boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}"
+	LINUX_LIVE="${LINUX_LIVE}\nlinux\t\t/${KERNEL} ${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}"
 	LINUX_LIVE="${LINUX_LIVE}\ninitrd\t\t/${INITRD}"
 	LINUX_LIVE="${LINUX_LIVE}\n}"
 }
@@ -99,6 +99,10 @@ case "${LB_INITRAMFS}" in
 	live-boot)
 		INITFS="live"
 		;;
+
+	*)
+		INITFS=""
+		;;
 esac
 
 # Setting destination directory
@@ -109,6 +113,10 @@ case "${LB_BINARY_IMAGES}" in
 				DESTDIR_LIVE="binary/casper"
 				;;
 
+			jasper)
+				DESTDIR_LIVE="binary/jasper"
+				;;
+
 			live-boot)
 				DESTDIR_LIVE="binary/live"
 				;;
diff --git a/scripts/build/lb_binary_linux-image b/scripts/build/lb_binary_linux-image
index c5a8cc6..10495de 100755
--- a/scripts/build/lb_binary_linux-image
+++ b/scripts/build/lb_binary_linux-image
@@ -48,6 +48,10 @@ case "${LB_INITRAMFS}" in
 		DESTDIR="binary/casper"
 		;;
 
+	jasper)
+		DESTDIR="binary/jasper"
+		;;
+
 	live-boot)
 		DESTDIR="binary/live"
 		;;
diff --git a/scripts/build/lb_binary_manifest b/scripts/build/lb_binary_manifest
index 4b49133..96631f9 100755
--- a/scripts/build/lb_binary_manifest
+++ b/scripts/build/lb_binary_manifest
@@ -49,6 +49,11 @@ case "${LB_INITRAMFS}" in
 		SUFFIX="manifest"
 		;;
 
+	jasper)
+		INITFS="jasper"
+		SUFFIX="manifest"
+		;;
+
 	live-boot)
 		INITFS="live"
 		SUFFIX="packages"
diff --git a/scripts/build/lb_binary_memtest b/scripts/build/lb_binary_memtest
index a539ee6..a898937 100755
--- a/scripts/build/lb_binary_memtest
+++ b/scripts/build/lb_binary_memtest
@@ -84,6 +84,10 @@ case "${LB_INITRAMFS}" in
 		DESTDIR="binary/casper"
 		;;
 
+	jasper)
+		DESTDIR="binary/jasper"
+		;;
+
 	live-boot)
 		DESTDIR="binary/live"
 		;;
diff --git a/scripts/build/lb_binary_net b/scripts/build/lb_binary_net
index 9cac050..a1ef163 100755
--- a/scripts/build/lb_binary_net
+++ b/scripts/build/lb_binary_net
@@ -66,6 +66,10 @@ then
 			ORIGDIR="binary/casper"
 			;;
 
+		jasper)
+			ORIGDIR="binary/jasper"
+			;;
+
 		live-boot)
 			ORIGDIR="binary/live"
 			;;
diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs
index 2e3e34e..e855971 100755
--- a/scripts/build/lb_binary_rootfs
+++ b/scripts/build/lb_binary_rootfs
@@ -53,6 +53,10 @@ case "${LB_INITRAMFS}" in
 		INITFS="casper"
 		;;
 
+	jasper)
+		INITFS="jasper"
+		;;
+
 	live-boot)
 		INITFS="live"
 		;;
diff --git a/scripts/build/lb_binary_silo b/scripts/build/lb_binary_silo
index ac2e2d0..83366ac 100755
--- a/scripts/build/lb_binary_silo
+++ b/scripts/build/lb_binary_silo
@@ -82,7 +82,7 @@ Silo_live_entry ()
 	LINUX_LIVE="${LINUX_LIVE}\nimage=${DIRECTORY}/${KERNEL}\n"
 	LINUX_LIVE="${LINUX_LIVE}\t  label=${LABEL}\n"
 	LINUX_LIVE="${LINUX_LIVE}\t  initrd=${DIRECTORY}/${INITRD}\n"
-	LINUX_LIVE="${LINUX_LIVE}\t  append=\"boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
+	LINUX_LIVE="${LINUX_LIVE}\t  append=\"${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
 }
 
 Silo_install_entry ()
@@ -113,6 +113,11 @@ case "${LB_INITRAMFS}" in
 		DESTDIR_LIVE="binary/casper"
 		;;
 
+	jasper)
+		INITFS=""
+		DESTDIR_LIVE="binary/jasper"
+		;;
+
 	live-boot)
 		INITFS="live"
 		DESTDIR_LIVE="binary/live"
diff --git a/scripts/build/lb_binary_yaboot b/scripts/build/lb_binary_yaboot
index ee2452b..f21056a 100755
--- a/scripts/build/lb_binary_yaboot
+++ b/scripts/build/lb_binary_yaboot
@@ -72,7 +72,7 @@ Yaboot_live_entry ()
 	LINUX_LIVE="${LINUX_LIVE}\nimage=${DIRECTORY}/${KERNEL}\n"
 	LINUX_LIVE="${LINUX_LIVE}\tlabel=${LABEL}\n"
 	LINUX_LIVE="${LINUX_LIVE}\tinitrd=${DIRECTORY}/${INITRD}\n"
-	LINUX_LIVE="${LINUX_LIVE}\tappend=\"boot=${INITFS} config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
+	LINUX_LIVE="${LINUX_LIVE}\tappend=\"${INITFS:+boot=${INITFS} }config LB_BOOTAPPEND_LIVE ${APPEND}\"\n"
 	LINUX_LIVE="${LINUX_LIVE}\tinitrd-size=10240\n"
 }
 
@@ -132,6 +132,10 @@ case "${LB_INITRAMFS}" in
 	live-boot)
 		INITFS="live"
 		;;
+
+	*)
+		INITFS=""
+		;;
 esac
 
 # Setting destination directory
@@ -142,6 +146,10 @@ case "${LB_BINARY_IMAGES}" in
 				DESTDIR_LIVE="binary/casper"
 				;;
 
+			jasper)
+				DESTDIR_LIVE="binary/jasper"
+				;;
+
 			live-boot)
 				DESTDIR_LIVE="binary/live"
 				;;
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks
index 4c26deb..bbb39ce 100755
--- a/scripts/build/lb_chroot_hacks
+++ b/scripts/build/lb_chroot_hacks
@@ -255,9 +255,13 @@ case "${LB_INITRAMFS}" in
 	live-boot)
 		ID="1000"
 		;;
+
+	*)
+		ID=""
+		;;
 esac
 
-if [ -d chroot/home/${LB_USERNAME} ]
+if [ -d chroot/home/${LB_USERNAME} ] && [ "${ID}" ]
 then
 	chown -R --quiet ${ID}:${ID} chroot/home/${LB_USERNAME}
 fi
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index f2c6bdc..bbcdf8f 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -79,7 +79,7 @@ USAGE="${PROGRAM}   [--apt apt|aptitude]\n\
 \t    [--hostname NAME]\n\
 \t    [--ignore-system-defaults]\n\
 \t    [--includes PATH|none]\n\
-\t    [--initramfs auto|none|live-boot|casper]\n\
+\t    [--initramfs auto|none|live-boot|casper|jasper]\n\
 \t    [--initramfs-compression bzip2|gzip|lzma]\n\
 \t    [--initsystem sysvinit|runit|systemd|upstart|none]\n\
 \t    [--interactive shell]\n\
-- 
1.7.4.1


--- End Message ---
--- Begin Message ---
Source: live-build
Source-Version: 3.0~a19-1

We believe that the bug you reported is fixed in the latest version of
live-build, which is due to be installed in the Debian FTP archive:

live-build-cgi_3.0~a19-1_all.deb
  to main/l/live-build/live-build-cgi_3.0~a19-1_all.deb
live-build_3.0~a19-1.debian.tar.gz
  to main/l/live-build/live-build_3.0~a19-1.debian.tar.gz
live-build_3.0~a19-1.dsc
  to main/l/live-build/live-build_3.0~a19-1.dsc
live-build_3.0~a19-1_all.deb
  to main/l/live-build/live-build_3.0~a19-1_all.deb
live-build_3.0~a19.orig.tar.gz
  to main/l/live-build/live-build_3.0~a19.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 627887@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Baumann <daniel@debian.org> (supplier of updated live-build package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 11 Jun 2011 11:04:08 +0200
Source: live-build
Binary: live-build live-build-cgi
Architecture: source all
Version: 3.0~a19-1
Distribution: unstable
Urgency: low
Maintainer: Debian Live Project <debian-live@lists.debian.org>
Changed-By: Daniel Baumann <daniel@debian.org>
Description: 
 live-build - Debian Live - System Build Scripts
 live-build-cgi - Debian Live - System Build Scripts (cgi frontend)
Closes: 627887 629533
Changes: 
 live-build (3.0~a19-1) unstable; urgency=low
 .
   [ Richard Nelson ]
   * Update VERSION in common.sh to match last release.
 .
   [ Daniel Baumann ]
   * Updating packages in sun-java6 example hook.
   * Updating default kernel flavour for progress on i386.
   * Updating default kernel flavour for debian on i386.
 .
   [ Colin Watson ]
   * Use mkfs.ext2/mkfs.ext2 instead of genext2fs (Closes: #629533).
   * Make --initramfs none work more consistently (Closes: #627887).
 .
   [ Richard Nelson ]
   * Add progress as an option for --mode in lb_config manpage.
 .
   [ Daniel Baumann ]
   * Don't try to install standard task on anything but ubuntu.
Checksums-Sha1: 
 ccf03f7e4586afea384db05d7f2208bde501ecf0 1282 live-build_3.0~a19-1.dsc
 91c1e8d2af56c1fcf68657c7058b05f8376b04f0 1928667 live-build_3.0~a19.orig.tar.gz
 9277d1fa5b7f6a7d78907e46866c198f1429f4b1 41383 live-build_3.0~a19-1.debian.tar.gz
 d5dc7c5813c187053ef4ec62a8ac74d0b50755a7 1133090 live-build_3.0~a19-1_all.deb
 b39d330fa41e192c88818476e7250136b2e8b777 57680 live-build-cgi_3.0~a19-1_all.deb
Checksums-Sha256: 
 c64da2f3a9f83386441eb25947f94a976f14299ae66ab720b0f2afd94e4049a3 1282 live-build_3.0~a19-1.dsc
 5d5e70c149e0026d52472b528c561ab32f9dc95f71767bfc49fa7213a7205cd3 1928667 live-build_3.0~a19.orig.tar.gz
 00c80df1b19bb0191ce1601627086be7409d22af78c4c294f0876b1e21794c91 41383 live-build_3.0~a19-1.debian.tar.gz
 d2a7d797bc2d62f6e532462d7e34c80fd04425ff5de99add5b1bfce8695e1e12 1133090 live-build_3.0~a19-1_all.deb
 536666dbfff8ae3cec03ffcb212a92a5f86bda0c6378366478859d3fcbfb9fc5 57680 live-build-cgi_3.0~a19-1_all.deb
Files: 
 8988d6659648cfe480a3a0e2a87f1325 1282 misc optional live-build_3.0~a19-1.dsc
 4903bdc132a2b775dc10c333bbab49fe 1928667 misc optional live-build_3.0~a19.orig.tar.gz
 faad2867e8b05dd3f099c27e230089cb 41383 misc optional live-build_3.0~a19-1.debian.tar.gz
 cf4be2056af3493abce692df69222585 1133090 misc optional live-build_3.0~a19-1_all.deb
 e47e81665e70af490f08597911688a9c 57680 misc optional live-build-cgi_3.0~a19-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk3zMicACgkQ+C5cwEsrK54x/wCgqpHCLluvyJMJXGkae83Rxwah
3BAAn3pXlgNYaWfzMioH/uBUELkdufpw
=6nrM
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: