This commit is contained in:
Pascal Vizeli
2018-08-24 21:50:29 +00:00
parent 9b170812d6
commit 74ff13e25e
12 changed files with 148 additions and 111 deletions

View File

@@ -1,13 +0,0 @@
#!/bin/sh
DEVICE_CHILD="$(findfs LABEL="hassos-boot")"
DEVICE_ROOT="/dev/$(lsblk -no pkname ${DEVICE_CHILD})"
IMAGE_FILE="${1}"
# Check params
if [ ! -f "${IMAGE_FILE}" ]; then
echo "[Error] Can't find image: ${IMAGE_FILE}"
exit 1
fi
dd if=${IMAGE_FILE} of=${DEVICE_ROOT} conv=notrunc bs=512 seek=2

View File

@@ -1,7 +0,0 @@
#!/bin/sh
BOOT_DATA=/tmp/boot-data
cp -f ${BOOT_DATA}/*.txt ${RAUC_SLOT_MOUNT_POINT}/
rm -rf ${BOOT_DATA}

View File

@@ -1,8 +0,0 @@
#!/bin/sh
BOOT_DATA=/tmp/boot-data
rm -rf ${BOOT_DATA}
mkdir -p ${BOOT_DATA}
cp -f ${RAUC_SLOT_MOUNT_POINT}/*.txt ${BOOT_DATA}/