@@ -40,6 +40,9 fi | |||
|
40 | 40 | |
|
41 | 41 | # Generate initramfs file |
|
42 | 42 | if [ "$ENABLE_INITRAMFS" = true ] ; then |
|
43 | # Generate initramfs without encrypted root partition support | |
|
44 | chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" | |
|
45 | ||
|
43 | 46 | if [ "$ENABLE_CRYPTFS" = true ] ; then |
|
44 | 47 | # Include initramfs scripts to auto expand encrypted root partition |
|
45 | 48 | if [ "$EXPANDROOT" = true ] ; then |
@@ -103,9 +106,10 if [ "$ENABLE_INITRAMFS" = true ] ; then | |||
|
103 | 106 | # Dummy mapping required by mkinitramfs |
|
104 | 107 | echo "0 1 crypt $(echo "${CRYPTFS_CIPHER}" | cut -d ':' -f 1) ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 0 7:0 4096" | chroot_exec dmsetup create "${CRYPTFS_MAPPING}" |
|
105 | 108 | |
|
109 | # Generate initramfs without encrypted root partition support | |
|
110 | chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" | |
|
111 | ||
|
106 | 112 | # Remove dummy mapping |
|
107 | 113 | chroot_exec cryptsetup close "${CRYPTFS_MAPPING}" |
|
108 | 114 | fi |
|
109 | # Generate initramfs without encrypted root partition support | |
|
110 | chroot_exec mkinitramfs -o "/boot/firmware/initramfs-${KERNEL_VERSION}" "${KERNEL_VERSION}" | |
|
111 | 115 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant