GithubHelp home page GithubHelp logo

LUKS / dm-crypt about petitboot HOT 4 CLOSED

c0d3z3r0 avatar c0d3z3r0 commented on July 28, 2024
LUKS / dm-crypt

from petitboot.

Comments (4)

klauskiwi avatar klauskiwi commented on July 28, 2024

Unless I'm missing something, I can't think of any way Petitboot could do this, considering that we are kexec()'ing a second kernel that will need to mount it's (own?) root filesystem. @sammj or @jk-ozlabs any thoughts?

from petitboot.

grooverdan avatar grooverdan commented on July 28, 2024

Only could happen if a secret was pushed on the command line (and initrd managed to use this, and its cleared somehow (that I don't know can be done)), or a alternate initrd is created by petitboot and booted which unlocks the luks store and then chainloads the second default distro initrd.

from petitboot.

c0d3z3r0 avatar c0d3z3r0 commented on July 28, 2024

Yes, you're both right. After some experiments I finally found a solution, that can be used independent from petitboot.

  1. add memmap=1M!4G to both, the bootloader kernel cmdline and the os kernel cmdline
  2. Adapt the bootloader kernel keyscript (I'm using the keyctl script) to write the secret base64-encoded to /dev/pmem0
  3. Adapt the os kernel keyscript to first try to read /dev/pmem0 if it exists, decode and try the password and wipe /dev/pmem0; if that fails fall back to interactive password entry

from petitboot.

grooverdan avatar grooverdan commented on July 28, 2024

Good idea with pmem. NVRAM option of LoPAPR might be another option. Should be a minimum of 4k available.

from petitboot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.