# HG changeset patch # User Pascal Bellard # Date 1597852957 0 # Node ID ac809a573f3caa567c356902b90ff8c6a5a53ee8 # Parent 8d3a1a983aae1acf8fbab8cc42709aa1cf535112 Create missing partition & syslinux.cfg is not case sensitive diff -r 8d3a1a983aae -r ac809a573f3c tazusb --- a/tazusb Wed Aug 19 10:56:11 2020 +0000 +++ b/tazusb Wed Aug 19 16:02:37 2020 +0000 @@ -137,6 +137,21 @@ } +check_partition_table() { + DISK=${DEVICE%[1-99]} + fdisk -l $DISK | grep -q ^$DEVICE: || fdisk $DISK </dev/null - cp /media/cdrom/boot/*pxe* $TARGET_ROOT/boot 2>/dev/null + cp /media/cdrom/boot/*xe* $TARGET_ROOT/boot 2>/dev/null status } @@ -301,10 +318,10 @@ cp /media/cdrom/boot/isolinux/isolinux.cfg $TARGET_ROOT/boot/$ST/$ST.$STE # Update DVD autoinstall - sed -i "s/LABEL=packages-[^,]*/UUID=$UUID/g" $(grep -l append $TARGET_ROOT/boot/$ST/*) + sed -i "s/LABEL=packages-[^,]*/UUID=$UUID/g" $(grep -il append $TARGET_ROOT/boot/$ST/*) # Add home=$UUID to kernel line in extlinux or syslinux.cfg - sed -i -e "s/\(root=.*\)/\1 home=$UUID/" $(grep -l append $TARGET_ROOT/boot/$ST/*) + sed -i -e "s/\(root=.*\)/\1 home=$UUID/" $(grep -il append $TARGET_ROOT/boot/$ST/*) # Splash screen and help files. cp /media/cdrom/boot/isolinux/splash.* $TARGET_ROOT/boot/$ST