Skip to content

Commit 786cba2

Browse files
committed
potentially fix NVMe #2094
1 parent 7dab69b commit 786cba2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

SD/Pi-FlashUSB.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,9 @@ elif [ "$DEVICE" = "nvme0n1" ]; then
5454
echo -e "[all]\nBOOT_ORDER=${BOOT_ORDER}" > /tmp/boot.conf
5555

5656
# Apply the configuration using the rpi-eeprom-config tool
57-
sudo rpi-eeprom-config --config /tmp/boot.conf --out /tmp/new-eeprom.bin
57+
sudo rpi-eeprom-config --apply /tmp/boot.conf
5858

59-
# Flash the EEPROM with the new configuration
60-
sudo rpi-eeprom-update -d -f /tmp/new-eeprom.bin
61-
62-
# Clean up
63-
rm /tmp/boot.conf /tmp/new-eeprom.bin
59+
rm /tmp/boot.conf
6460

6561
echo "BOOT_ORDER set to ${BOOT_ORDER}."
6662

0 commit comments

Comments
 (0)