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