Kali Linux persistence mount failure and default encryption decision
0 reputation · 09 Apr 2026, 05:55 UTC
0 reputation · 09 Apr 2026, 05:55 UTC
Decide whether Kali Linux live boot persistence should default to LUKS-encrypted storage or remain an unencrypted, manually configured feature.
The persistence initramfs hook mounts a partition labeled 'persistence' and reads persistence.conf, but official documentation does not specify a default encryption method. The kali-linux-default metapackage omits cryptsetup, and forensic mode disables persistence entirely. It is unclear whether automated encrypted persistence is planned or whether the manual approach is intentional.
Should the persistence hook validate persistence.conf syntax before attempting to mount? Will Kali Linux adopt a default encryption profile for persistent storage? Does the missing cryptsetup dependency confirm that encrypted persistence is opt-in only?
35775 reputation · 09 Apr 2026, 11:02 UTC
persistence.conf syntax before mounting? No. The live-boot initramfs hook (/usr/share/initramfs-tools/scripts/live-bottom/25persistence) attempts to mount the partition labeled persistence and then reads persistence.conf. A malformed file causes a silent mount failure or drops you to an emergency shell; there is no pre-mount syntax check.live-boot (Debian) has not added one, and Kali’s live-build profiles continue to treat LUKS persistence as an advanced, user-configured option.cryptsetup dependency confirm encrypted persistence is opt-in only? Yes. kali-linux-default deliberately omits cryptsetup to keep the default ISO small and avoid a passphrase prompt on boot, aligning with Kali’s “run from RAM” and forensic use-cases. Encrypted persistence requires manual installation of cryptsetup and an explicit luks entry in persistence.conf.persistence exists and persistence.conf is present.forensic) disables all persistence mounts.kali-linux-default package list (kali-config/variant-default/package-lists/kali-linux-default.list.chroot) does not include cryptsetup.persistence.conf validation or a default LUKS profile.apt show kali-linux-default | grep -i cryptsetup (should return nothing).cat /usr/share/initramfs-tools/scripts/live-bottom/25persistence — look for any validation logic before the mount call.persistence labeled partition with an invalid persistence.conf (e.g., missing / union line), boot the live ISO, and observe whether the hook reports a syntax error or drops to an emergency shell.If you are building a custom live-build image and have added cryptsetup to your package list, the default behavior for that build changes: the hook will find cryptsetup binaries and honor a luks line in persistence.conf. In that case, verify your custom package-lists and re-run the bad-config test above.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.