better naming for build utils
This commit is contained in:
parent
86269dfa05
commit
2995760db4
3
build.sh
3
build.sh
|
@ -7,8 +7,7 @@ if [ "$DEBUG" ]; then
|
|||
set -x
|
||||
fi
|
||||
|
||||
. ./patch_initramfs.sh
|
||||
. ./build_image.sh
|
||||
. ./image_utils.sh
|
||||
. ./shim_utils.sh
|
||||
|
||||
print_help() {
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
if [ "$DEBUG" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
create_loop() {
|
||||
local loop_device=$(losetup -f)
|
||||
losetup -P $loop_device "${1}"
|
||||
|
@ -129,3 +124,12 @@ create_image() {
|
|||
|
||||
partition_disk $image_path $bootloader_size
|
||||
}
|
||||
|
||||
patch_initramfs() {
|
||||
local initramfs_path=$(realpath $1)
|
||||
|
||||
rm "${initramfs_path}/init" -f
|
||||
cp -r bootloader/* "${initramfs_path}/"
|
||||
|
||||
find ${initramfs_path}/bin -name "*" -exec chmod +x {} \;
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#patch the shim initramfs to add the bootloader
|
||||
|
||||
set -e
|
||||
if [ "$DEBUG" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
patch_initramfs() {
|
||||
local initramfs_path=$(realpath $1)
|
||||
|
||||
rm "${initramfs_path}/init" -f
|
||||
cp -r bootloader/* "${initramfs_path}/"
|
||||
|
||||
find ${initramfs_path}/bin -name "*" -exec chmod +x {} \;
|
||||
}
|
Loading…
Reference in New Issue