From 9d0d5b5b4f3eb68eb0cb57939ca7138e9a50957c Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 28 Aug 2023 11:55:07 -0400 Subject: [PATCH] Use syslinux 6.04, which fixes Trisquel 11 booting --- README.mdwn | 18 ++++++++++-------- live-usb-loader.sh | 8 +++----- syslinux.deb.sha256 | 2 -- 3 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 syslinux.deb.sha256 diff --git a/README.mdwn b/README.mdwn index 79c795c..54f0a53 100644 --- a/README.mdwn +++ b/README.mdwn @@ -32,19 +32,21 @@ a loop device will probably not work, partly due to the way syslinux behaves with loop devices. If you get that working, feel free to submit a patch to . : ) -You'll need to download and install old versions of syslinux: +This script has been tested on GNU/Linux with syslinux version 6.04. -* -* +You should wipe at least the start of the drive you want to install onto. Note +that this is a destructive operation, and if you choose the wrong drive, you +will lose data. Replace the 'X' in /dev/sdX with the letter of the drive you +want to install to: -Check files, install them, and run the script: + lsblk - sha256sum -c syslinux.deb.sha256 + # if you want to wipe /dev/sdX + dd if=/dev/zero of=/dev/sdb bs=4M count=25 - dpkg -i syslinux-common_4.05+dfsg-6+deb8u1_all.deb - dpkg -i syslinux_4.05+dfsg-6+deb8u1_amd64.deb +Then run the script on the same drive: - sudo ./live-usb-loader.sh trisquel_11.0-fsf_amd64.iso /dev/sdb + sudo ./live-usb-loader.sh trisquel_11.0-fsf_amd64.iso /dev/sdX ## Installing extra media, including Trisquel 9 source code diff --git a/live-usb-loader.sh b/live-usb-loader.sh index 0fb2d62..e1a0b5f 100755 --- a/live-usb-loader.sh +++ b/live-usb-loader.sh @@ -67,11 +67,9 @@ umount $ISOTMP rmdir $DEVTMP rmdir $ISOTMP -# Set up bootloader, requires syslinux 4x -# https://mirror.fsf.org/trisquel/pool/main/s/syslinux/syslinux-common_4.05+dfsg-6+deb8u1_all.deb -# https://mirror.fsf.org/trisquel/pool/main/s/syslinux/syslinux_4.05+dfsg-6+deb8u1_amd64.deb -syslinux ${DEV}1 -dd conv=notrunc if=/usr/lib/syslinux/mbr.bin bs=440 count=1 of=$DEV +# Set up bootloader, requires syslinux. version 6.04 has been tested. +syslinux --directory /syslinux/ --install ${DEV}1 +sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=/dev/sdb parted $DEV set 1 boot on #eject $DEV diff --git a/syslinux.deb.sha256 b/syslinux.deb.sha256 deleted file mode 100644 index cfeb1f8..0000000 --- a/syslinux.deb.sha256 +++ /dev/null @@ -1,2 +0,0 @@ -1236dabe1d439ef9cd4f7df932e56a5f318617c669ca65cd0cc20daa43d7a738 syslinux_4.05+dfsg-6+deb8u1_amd64.deb -4881ee37658b4d0359511f9622e8bcc0b6b08ac9874e50c5bbbb36dd0332d692 syslinux-common_4.05+dfsg-6+deb8u1_all.deb -- 2.25.1