Comments (4)
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.
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.
Yes, you're both right. After some experiments I finally found a solution, that can be used independent from petitboot
.
- add
memmap=1M!4G
to both, the bootloader kernel cmdline and the os kernel cmdline - Adapt the bootloader kernel keyscript (I'm using the keyctl script) to write the secret base64-encoded to
/dev/pmem0
- 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.
Good idea with pmem. NVRAM option of LoPAPR might be another option. Should be a minimum of 4k available.
from petitboot.
Related Issues (20)
- The petitboot system information interface refreshes and shows chaos.
- petitboot should not clear terminal scrollback HOT 1
- language translation fix HOT 9
- Device tree framebuffer address is wrong HOT 1
- Where can I find the configuration documentation? HOT 1
- ANSI coloured text?
- BootLoader Spec Support HOT 3
- kexec_file_load support for device-tree blobs HOT 1
- Can not get the same file from git source with petitboot-1.8.0.tar.gz HOT 1
- The link to http://git.ozlabs.org/?p=petitboot might be confusing HOT 3
- Adding "inst.dd" boot argument to install OS, causes the system interface to get stuck
- Setting a directory path for a dtb file does not seem to fail any validation checks HOT 1
- pb-discover crashes with a malformed DHCP URL for the pxeconffile HOT 1
- How do I build a install image for Playstation 3? HOT 13
- Force HTTP protocol in pxelinux-style configuration auto-discovery HOT 5
- [Feature Request]: Add licence HOT 3
- Petitboot not parsing/executing boot.scr HOT 3
- There is no v1.14 release HOT 3
- petitboot doesn't build against ncurses with NCURSES_OPAQUE_MENU
- Petitboot: v1.15: No video output after kexec HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from petitboot.