mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
redefine variable names for partition labels
This commit is contained in:
parent
e0c8006ae0
commit
c2792f5dbb
@ -211,6 +211,6 @@
|
|||||||
# Default supported get handlers (archive, git, file etc.)
|
# Default supported get handlers (archive, git, file etc.)
|
||||||
GET_HANDLER_SUPPORT="archive"
|
GET_HANDLER_SUPPORT="archive"
|
||||||
|
|
||||||
# Partition labels
|
# Partition labels for USB/SD installation media
|
||||||
DISTRO_FAT_VOLUME_LABEL="LIBREELEC"
|
DISTRO_BOOTLABEL="LIBREELEC"
|
||||||
DISTRO_STORAGE_VOLUME_LABEL="STORAGE"
|
DISTRO_DISKLABEL="STORAGE"
|
||||||
|
@ -218,8 +218,8 @@ makeinstall_init() {
|
|||||||
|
|
||||||
if find_file_path initramfs/platform_init; then
|
if find_file_path initramfs/platform_init; then
|
||||||
cp ${FOUND_PATH} $INSTALL
|
cp ${FOUND_PATH} $INSTALL
|
||||||
sed -e "s/@BOOT_LABEL@/$DISTRO_FAT_VOLUME_LABEL/g" \
|
sed -e "s/@BOOT_LABEL@/$DISTRO_BOOTLABEL/g" \
|
||||||
-e "s/@DISK_LABEL@/$DISTRO_STORAGE_VOLUME_LABEL/g" \
|
-e "s/@DISK_LABEL@/$DISTRO_DISKLABEL/g" \
|
||||||
-i $INSTALL/platform_init
|
-i $INSTALL/platform_init
|
||||||
chmod 755 $INSTALL/platform_init
|
chmod 755 $INSTALL/platform_init
|
||||||
fi
|
fi
|
||||||
|
@ -71,15 +71,15 @@ makeinstall_target() {
|
|||||||
|
|
||||||
# Replace partition names in update.sh
|
# Replace partition names in update.sh
|
||||||
if [ -f "$INSTALL/usr/share/bootloader/update.sh" ] ; then
|
if [ -f "$INSTALL/usr/share/bootloader/update.sh" ] ; then
|
||||||
sed -e "s/@BOOT_LABEL@/$DISTRO_FAT_VOLUME_LABEL/g" \
|
sed -e "s/@BOOT_LABEL@/$DISTRO_BOOTLABEL/g" \
|
||||||
-e "s/@DISK_LABEL@/$DISTRO_STORAGE_VOLUME_LABEL/g" \
|
-e "s/@DISK_LABEL@/$DISTRO_DISKLABEL/g" \
|
||||||
-i $INSTALL/usr/share/bootloader/update.sh
|
-i $INSTALL/usr/share/bootloader/update.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace labels in boot.ini
|
# Replace labels in boot.ini
|
||||||
if [ -f "$INSTALL/usr/share/bootloader/boot.ini" ] ; then
|
if [ -f "$INSTALL/usr/share/bootloader/boot.ini" ] ; then
|
||||||
sed -e "s/@BOOT_LABEL@/$DISTRO_FAT_VOLUME_LABEL/g" \
|
sed -e "s/@BOOT_LABEL@/$DISTRO_BOOTLABEL/g" \
|
||||||
-e "s/@DISK_LABEL@/$DISTRO_STORAGE_VOLUME_LABEL/g" \
|
-e "s/@DISK_LABEL@/$DISTRO_DISKLABEL/g" \
|
||||||
-i $INSTALL/usr/share/bootloader/boot.ini
|
-i $INSTALL/usr/share/bootloader/boot.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -92,15 +92,15 @@ makeinstall_target() {
|
|||||||
|
|
||||||
# Replace partition names in update.sh
|
# Replace partition names in update.sh
|
||||||
if [ -f "$INSTALL/usr/share/bootloader/update.sh" ] ; then
|
if [ -f "$INSTALL/usr/share/bootloader/update.sh" ] ; then
|
||||||
sed -e "s/@BOOT_LABEL@/$DISTRO_FAT_VOLUME_LABEL/g" \
|
sed -e "s/@BOOT_LABEL@/$DISTRO_BOOTLABEL/g" \
|
||||||
-e "s/@DISK_LABEL@/$DISTRO_STORAGE_VOLUME_LABEL/g" \
|
-e "s/@DISK_LABEL@/$DISTRO_DISKLABEL/g" \
|
||||||
-i $INSTALL/usr/share/bootloader/update.sh
|
-i $INSTALL/usr/share/bootloader/update.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace labels in boot.ini
|
# Replace labels in boot.ini
|
||||||
if [ -f "$INSTALL/usr/share/bootloader/boot.ini" ] ; then
|
if [ -f "$INSTALL/usr/share/bootloader/boot.ini" ] ; then
|
||||||
sed -e "s/@BOOT_LABEL@/$DISTRO_FAT_VOLUME_LABEL/g" \
|
sed -e "s/@BOOT_LABEL@/$DISTRO_BOOTLABEL/g" \
|
||||||
-e "s/@DISK_LABEL@/$DISTRO_STORAGE_VOLUME_LABEL/g" \
|
-e "s/@DISK_LABEL@/$DISTRO_DISKLABEL/g" \
|
||||||
-i $INSTALL/usr/share/bootloader/boot.ini
|
-i $INSTALL/usr/share/bootloader/boot.ini
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,8 @@ trap cleanup SIGINT
|
|||||||
UUID_2=$(date '+%M%S')
|
UUID_2=$(date '+%M%S')
|
||||||
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="${DISTRO_FAT_VOLUME_LABEL}"
|
FAT_VOLUME_LABEL="${DISTRO_BOOTLABEL}"
|
||||||
STORAGE_VOLUME_LABEL="${DISTRO_STORAGE_VOLUME_LABEL}"
|
STORAGE_VOLUME_LABEL="${DISTRO_DISKLABEL}"
|
||||||
|
|
||||||
# create an image
|
# create an image
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user