|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 29/38] mg-debian-installer-update: support overlay-intramfs-SUITE
This lets us patch the installer more easily.
No uses yet.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
mg-debian-installer-update | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index f1e682f9..fb4fe2ab 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -33,6 +33,8 @@ sbase=$site/dists/$suite
src=$sbase/main/installer-$arch/current/images/netboot/
+osstest_dir="$(pwd)"
+
case ${suite}_${arch} in
lenny_armhf|squeeze_armhf|lenny_arm64|squeeze_arm64|wheezy_arm64)
# No such thing.
@@ -188,6 +190,24 @@ if [ "x$specialkernel" != x ]; then
rm -rf x
fi
+overlay_initrd=$osstest_dir/overlay-initrd-$suite
+if [ -e "$overlay_initrd" ]; then
+ for f in $files; do
+ s=${f/:*} ; d=${f/*:}
+ case "$d" in
+ *initrd*)
+ echo "adding $overlay_initrd to $d"
+ (
+ set -e
+ cd "$overlay_initrd"
+ find -print0 | cpio -0 -Hnewc -o \
+ | gzip -9nf
+ ) >>$d.new
+ ;;
+ esac
+ done
+fi
+
for f in $files; do
s=${f/:*} ; d=${f/*:}
mv -f $d.new $d
--
2.20.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |