Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/base/kspost.50.zip_bootfiles.nochroot.inc
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-09-13 21:59:01 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-09-13 21:59:01 (GMT)
commitc5cb6551027da10d04f39ed1c04e166cc4878652 (patch)
tree5996ac9aba99c298451608ccd550d7c6c904b561 /modules/base/kspost.50.zip_bootfiles.nochroot.inc
parent5c9a93a5730c2c30d61eb8066a9155fb10f94749 (diff)
Revert "Always ship kernel/initramfs in zip files"
This reverts commit 41b5c8982e70ea61fde8aac6d2ed4bbe90458dc0. It breaks boot on XO-1.75; the kernel boots but can't find dtree/atb.
Diffstat (limited to 'modules/base/kspost.50.zip_bootfiles.nochroot.inc')
-rw-r--r--modules/base/kspost.50.zip_bootfiles.nochroot.inc46
1 files changed, 0 insertions, 46 deletions
diff --git a/modules/base/kspost.50.zip_bootfiles.nochroot.inc b/modules/base/kspost.50.zip_bootfiles.nochroot.inc
deleted file mode 100644
index 8477ae2..0000000
--- a/modules/base/kspost.50.zip_bootfiles.nochroot.inc
+++ /dev/null
@@ -1,46 +0,0 @@
-# Put the unsigned kernel/initramfs in zip files and remove the originals
-# This avoids duplication for signed builds (where these zips will be signed
-# later), where otherwise we would be shipped both signed and unsigned kernels
-# and losing some disk space.
-
-# Create zip files
-create_unsigned_zip() {
- local infile=$1
- local tgt=$2
-
- cd $INSTALL_ROOT/boot
- [ -e $1 ] || return
-
- cp $1 data.img
- zip -j -n .img ${tgt}.zip data.img
- rm -f data.img
-}
-
-create_unsigned_zip vmlinuz runos
-create_unsigned_zip initrd.img runrd
-create_unsigned_zip actrd.img actrd
-
-# Remove original copies
-remove_original() {
- local name=$1
-
- cd $INSTALL_ROOT/boot
- [ -e "$name" ] || return
-
- if [ -L "$name" ]; then
- dest=$(readlink $name)
- rm -rf "$dest"
- fi
-
- rm -f $name
-}
-
-remove_original vmlinuz
-remove_original actrd.img
-remove_original initrd.img
-
-# symlink actXX to runXX (or the other way) if any of them are missing
-[ -e $INSTALL_ROOT/boot/actos.zip ] || ln -s runos.zip $INSTALL_ROOT/boot/actos.zip
-[ -e $INSTALL_ROOT/boot/actrd.zip ] || ln -s runrd.zip $INSTALL_ROOT/boot/actrd.zip
-[ -e $INSTALL_ROOT/boot/runos.zip ] || ln -s actos.zip $INSTALL_ROOT/boot/runos.zip
-[ -e $INSTALL_ROOT/boot/runrd.zip ] || ln -s actrd.zip $INSTALL_ROOT/boot/runrd.zip