##// END OF EJS Templates
0
Unknown -
r513:27accd49aa7c
parent child
Show More
@@ -87,10 +87,13 if [ "$ENABLE_INITRAMFS" = true ] ; then
87 87 # Dummy mapping required by mkinitramfs
88 88 echo "0 1 crypt $(echo "${CRYPTFS_CIPHER}" | cut -d ':' -f 1) ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 0 7:0 4096" | chroot_exec dmsetup create "${CRYPTFS_MAPPING}"
89 89
90 # Generate initramfs with encrypted root partition support
91 chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}"
92
90 93 # Remove dummy mapping
91 94 chroot_exec cryptsetup close "${CRYPTFS_MAPPING}"
92 fi
93
94 # Generate initramfs
95 else
96 # Generate initramfs without encrypted root partition support
95 97 chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}"
96 98 fi
99 fi
@@ -192,7 +192,7 if [ "$ENABLE_SYSTEMDSWAP" = true ] ; then
192 192 chown -R root:root "${R}/tmp/systemd-swap"
193 193
194 194 # Install package
195 chroot_exec dpkg -i /tmp/systemd-swap/systemd-swap_*_any.deb
195 chroot_exec dpkg -i /tmp/systemd-swap/systemd-swap*.deb
196 196
197 197 # Enable service
198 198 chroot_exec systemctl enable systemd-swap
@@ -60,6 +60,7 BLUETOOTH_URL=${BLUETOOTH_URL:=https://github.com/RPi-Distro/pi-bluetooth.git}
60 60 NEXMON_URL=${NEXMON_URL:=https://github.com/seemoo-lab/nexmon.git}
61 61 SYSTEMDSWAP_URL=${SYSTEMDSWAP_URL:=https://github.com/Nefelim4ag/systemd-swap.git}
62 62
63
63 64 # Kernel deb packages for 32bit kernel
64 65 RPI_32_KERNEL_URL=${RPI_32_KERNEL_URL:=https://github.com/hypriot/rpi-kernel/releases/download/v4.14.34/raspberrypi-kernel_20180422-141901_armhf.deb}
65 66 RPI_32_KERNELHEADER_URL=${RPI_32_KERNELHEADER_URL:=https://github.com/hypriot/rpi-kernel/releases/download/v4.14.34/raspberrypi-kernel-headers_20180422-141901_armhf.deb}
@@ -347,7 +348,7 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
347 348 APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez"
348 349 fi
349 350 if [ "$ENABLE_WIRELESS" = true ] ; then
350 APT_INCLUDES="${APT_INCLUDES},wireless-tools,crda,wireless-regdb"
351 APT_INCLUDES="${APT_INCLUDES},wireless-tools,crda,wireless-regdb,firmware-brcm80211"
351 352 fi
352 353 else # Raspberry PI 1,1P,2 without Wifi and bluetooth onboard
353 354 # Check if the internal wireless interface is not supported by the RPi model
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant