mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #2260 from kszaq/data_partition_label
scripts/mkimage: add label to disk partition as well
This commit is contained in:
commit
e1a965772d
@ -70,6 +70,7 @@ trap cleanup SIGINT
|
|||||||
FAT_SERIAL_NUMBER="${UUID_1}${UUID_2}"
|
FAT_SERIAL_NUMBER="${UUID_1}${UUID_2}"
|
||||||
UUID_SYSTEM="${UUID_1}-${UUID_2}"
|
UUID_SYSTEM="${UUID_1}-${UUID_2}"
|
||||||
FAT_VOLUME_LABEL="LIBREELEC"
|
FAT_VOLUME_LABEL="LIBREELEC"
|
||||||
|
STORAGE_VOLUME_LABEL="STORAGE"
|
||||||
|
|
||||||
# create an image
|
# create an image
|
||||||
echo
|
echo
|
||||||
@ -276,7 +277,7 @@ fi # bootloader
|
|||||||
# create filesystem on part2
|
# create filesystem on part2
|
||||||
echo "image: creating filesystem on part2..."
|
echo "image: creating filesystem on part2..."
|
||||||
mke2fs -F -q -t ext4 -m 0 "$LE_TMP/part2.ext4"
|
mke2fs -F -q -t ext4 -m 0 "$LE_TMP/part2.ext4"
|
||||||
tune2fs -U $UUID_STORAGE "$LE_TMP/part2.ext4" >"$SAVE_ERROR" 2>&1 || show_error
|
tune2fs -L "$STORAGE_VOLUME_LABEL" -U $UUID_STORAGE "$LE_TMP/part2.ext4" >"$SAVE_ERROR" 2>&1 || show_error
|
||||||
e2fsck -n "$LE_TMP/part2.ext4" >"$SAVE_ERROR" 2>&1 || show_error
|
e2fsck -n "$LE_TMP/part2.ext4" >"$SAVE_ERROR" 2>&1 || show_error
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user