mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/mkimage: add label to disk partition as well
This commit is contained in:
parent
fcd6deb21f
commit
7d3bbed226
@ -70,6 +70,7 @@ trap cleanup SIGINT
|
||||
FAT_SERIAL_NUMBER="${UUID_1}${UUID_2}"
|
||||
UUID_SYSTEM="${UUID_1}-${UUID_2}"
|
||||
FAT_VOLUME_LABEL="LIBREELEC"
|
||||
STORAGE_VOLUME_LABEL="STORAGE"
|
||||
|
||||
# create an image
|
||||
echo
|
||||
@ -276,7 +277,7 @@ fi # bootloader
|
||||
# create filesystem on part2
|
||||
echo "image: creating filesystem on part2..."
|
||||
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
|
||||
sync
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user