...
 
Commits (2)
......@@ -498,7 +498,7 @@ proc /proc proc auto,defaults 0 0
debugfs /sys/kernel/debug debugfs auto,defaults 0 0
configfs /config configfs auto,defaults 0 0
tmpfs /tmp tmpfs auto,mode=1777 0 0
/dev/mmcblk0p2 / ext4 auto,noatime,errors=remount-ro 0 1
/dev/mmcblk0p2 / ext4 auto,noatime,data=journal,errors=remount-ro 0 1
/dev/mmcblk0p1 /boot vfat auto,noatime 0 0
EOF
......@@ -626,6 +626,7 @@ EOF
quilt \
raspberrypi-bootloader \
raspi-config \
rng-tools \
schedtool \
screen \
sharutils \
......@@ -683,7 +684,7 @@ EOF
info "Creating /etc/rc.local..."
cat > /etc/rc.local <<EOF
#!/bin/sh -e
#!/bin/sh
#
# rc.local
#
......@@ -695,24 +696,30 @@ EOF
# bits.
#
set +e
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
export LC_ALL=C LANGUAGE=C LANG=C
# Re-generate ssh keys, if requested.
if [ -e /etc/ssh/ssh_create_keys ]; then
/bin/rm -f /etc/ssh/ssh_host_*_key*
LC_ALL=C LANGUAGE=C LANG=C /usr/sbin/dpkg-reconfigure openssh-server
/bin/rm /etc/ssh/sshd_not_to_be_run
/bin/rm /etc/ssh/ssh_create_keys
/etc/init.d/ssh start
rm -f /etc/ssh/ssh_host_*_key*
if dpkg-reconfigure openssh-server; then
rm -f /etc/ssh/ssh_create_keys
rm -f /etc/ssh/sshd_not_to_be_run
systemctl start ssh
fi
fi
# Workaround firmware issue leaving i2c0 in an non-ALT0 state.
for i in 28 29; do
/bin/echo \$i > /sys/class/gpio/export
/bin/echo in > /sys/class/gpio/gpio\${i}/direction
echo \$i > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio\${i}/direction
done
# Add /dev/ttyS0 link for convenience.
if ! [ -e /dev/ttyS0 ]; then
/bin/ln -s /dev/ttyAMA0 /dev/ttyS0
ln -s /dev/ttyAMA0 /dev/ttyS0
fi
exit 0
......@@ -979,7 +986,7 @@ pilc_bootstrap_third_stage()
info "Configuring boot..."
cat > "$opt_target_dir/boot/cmdline.txt" <<EOF
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline isolcpus=2,3 rcu_nocbs=2,3 nohz_full=2,3 fsck.repair=yes net.ifnames=0 rootwait quiet
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=data=journal elevator=deadline isolcpus=2,3 rcu_nocbs=2,3 nohz_full=2,3 fsck.repair=yes net.ifnames=0 rootwait quiet
EOF
[ $? -eq 0 ] || die "Failed to create /boot/cmdline.txt"
boot_config_file > "$opt_target_dir/boot/config.txt" ||\
......