Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix partitioning root UUID bug in /etc/crypttab. New option: CRYPTROOT_MAPPER. #7443

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

siis2992
Copy link

@siis2992 siis2992 commented Nov 5, 2024

Description

Fix partitioning root UUID bug in /etc/crypttab.
New option: CRYPTROOT_MAPPER. Make ROOT_MAPPER name for CRYPTROOT changable.

How Has This Been Tested?

  • Build before patch and get error
  • Build after patch and check image

How To Repoduce

  1. Build with command ./compile.sh build CRYPTROOT_ENABLE=yes CRYPTROOT_PASSPHRASE="toor" CRYPTROOT_SSH_UNLOCK=yes
  2. sudo losetup --show --partscan --find Armbian-unofficial_*-crypt.img
  3. sudo blkid /dev/loop*
  4. Mount boot from loop (for example /dev/loop0p1)
  5. Check that UUID in armbianEnv.txt (rootdev=/dev/mapper/armbian-root cryptdevice=UUID=${UUID}:armbian-root) not exists in blkid output
  6. Try to write into sd and get unknown UUID error in initramfs
  7. Retry with patch

@siis2992 siis2992 requested review from a team and igorpecovnik as code owners November 5, 2024 03:33
@github-actions github-actions bot added size/small PR with less then 50 lines Needs review Seeking for review Framework Framework components labels Nov 5, 2024
@igorpecovnik
Copy link
Member

New option: CRYPTROOT_MAPPER. Make ROOT_MAPPER name for CRYPTROOT changable.

Thank you! It would be ❤️ helpful adding this to the documentation, above this https://docs.armbian.com/Developer-Guide_Build-Options/#build-options-below-need-to-be-retested-and-added-above-could-be-deprecated

@igorpecovnik igorpecovnik added Ready to merge Reviewed, tested and ready for merge Bugfix Pull request is fixing a bug 11 Milestone: Fourth quarter release labels Nov 5, 2024
@igorpecovnik igorpecovnik merged commit 502e139 into armbian:main Nov 5, 2024
10 checks passed
@siis2992
Copy link
Author

siis2992 commented Nov 5, 2024

New option: CRYPTROOT_MAPPER. Make ROOT_MAPPER name for CRYPTROOT changable.

Thank you! It would be ❤️ helpful adding this to the documentation, above this https://docs.armbian.com/Developer-Guide_Build-Options/#build-options-below-need-to-be-retested-and-added-above-could-be-deprecated

armbian/documentation#519

@igorpecovnik
Copy link
Member

Is slightly improved (and hopefully correctly placed) https://docs.armbian.com/Developer-Guide_Build-Switches/#filesystem still ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11 Milestone: Fourth quarter release Bugfix Pull request is fixing a bug Framework Framework components Needs review Seeking for review Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

2 participants