@@ -1753,21 +1753,7 @@ echo "Candle: Copying configuration files into place" >> /dev/kmsg
17531753echo " Candle: Copying configuration files into place" >> /boot/candle_log.txt
17541754rsync -vr /home/pi/configuration-files/* /
17551755
1756- # if this is not a cutting edge build, then use the cmdline.txt and config.txt from the configuration files
1757- if [ ! -f /boot/candle_cutting_edge.txt ]; then
1758-
1759- # Copy the Candle cmdline over the old one. This one is disk UUID agnostic.
1760- if [ -f /boot/cmdline-candle.txt ]; then
1761- rm /boot/cmdline.txt
1762- cp /boot/cmdline-candle.txt /boot/cmdline.txt
1763- fi
17641756
1765- # Copy the Candle config.txt over the old one.
1766- if [ -f /boot/config.txt.bak ]; then
1767- rm /boot/config.txt
1768- cp /boot/config.txt.bak /boot/config.txt
1769- fi
1770- fi
17711757
17721758# if [ ! -f /boot/candle_config_version.txt ]; then
17731759# touch /boot/candle_config_version.txt
@@ -2054,6 +2040,7 @@ if [ "$SKIP_RO" = no ] || [[ -z "${SKIP_RO}" ]]; then
20542040 echo " ADDING READ-ONLY MODE"
20552041 echo
20562042 echo " Candle: adding read-only mode" >> /dev/kmsg
2043+ echo " Candle: adding read-only mode" >> /boot/candle_log.txt
20572044
20582045 mkinitramfs -o /boot/initrd
20592046
@@ -2317,6 +2304,22 @@ rm -rf /home/pi/configuration-files
23172304
23182305
23192306
2307+ # if this is not a cutting edge build, then use the cmdline.txt and config.txt from the configuration files
2308+ if [ ! -f /boot/candle_cutting_edge.txt ]; then
2309+
2310+ # Copy the Candle cmdline over the old one. This one is disk UUID agnostic.
2311+ if [ -f /boot/cmdline-candle.txt ]; then
2312+ rm /boot/cmdline.txt
2313+ cp /boot/cmdline-candle.txt /boot/cmdline.txt
2314+ fi
2315+
2316+ # Copy the Candle config.txt over the old one.
2317+ if [ -f /boot/config.txt.bak ]; then
2318+ rm /boot/config.txt
2319+ cp /boot/config.txt.bak /boot/config.txt
2320+ fi
2321+ fi
2322+
23202323
23212324# echo "setting internet time to true"
23222325# timedatectl set-ntp true
0 commit comments