mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #626 from vpeter4/image-label
scripts/mkimage: set real volume label on system partition
This commit is contained in:
commit
a7c8456f95
@ -59,8 +59,9 @@ trap cleanup SIGINT
|
||||
# generate volume id for fat partition
|
||||
UUID_1=$(date '+%d%m')
|
||||
UUID_2=$(date '+%M%S')
|
||||
FAT_VOL_ID="${UUID_1}${UUID_2}"
|
||||
FAT_SERIAL_NUMBER="${UUID_1}${UUID_2}"
|
||||
UUID_SYSTEM="${UUID_1}-${UUID_2}"
|
||||
FAT_VOLUME_LABEL="LIBREELEC"
|
||||
|
||||
# create an image
|
||||
echo
|
||||
@ -115,9 +116,9 @@ fi
|
||||
alias mmd="mmd -i $DISK@@$OFFSET"
|
||||
|
||||
if [ "$BOOTLOADER" = "syslinux" ]; then
|
||||
mformat -v "$FAT_VOL_ID" -N "$FAT_VOL_ID" ::
|
||||
mformat -v "$FAT_VOLUME_LABEL" -N "$FAT_SERIAL_NUMBER" ::
|
||||
elif [ "$BOOTLOADER" = "bcm2835-bootloader" -o "$BOOTLOADER" = "u-boot" ]; then
|
||||
mformat ::
|
||||
mformat -v "$FAT_VOLUME_LABEL" ::
|
||||
fi
|
||||
sync
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user