2013-11-07 04:25:34 +00:00
|
|
|
#!/bin/bash
|
2013-07-01 16:20:15 +00:00
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
2014-04-03 02:24:15 +00:00
|
|
|
set -o pipefail
|
2013-07-01 16:20:15 +00:00
|
|
|
|
2013-12-04 18:45:29 +00:00
|
|
|
IMAGE_NAME=${IMAGE_NAME:-'image'}
|
|
|
|
|
2014-05-13 16:25:05 +00:00
|
|
|
sudo chmod a+r $TMP_MOUNT_PATH/tmp/ramdisk $TMP_MOUNT_PATH/tmp/kernel
|
2013-07-01 16:20:15 +00:00
|
|
|
cp $TMP_MOUNT_PATH/tmp/ramdisk $IMAGE_NAME.initramfs
|
|
|
|
cp $TMP_MOUNT_PATH/tmp/kernel $IMAGE_NAME.kernel
|