From: Arno Wagner <wagner@arnowagner.info>
To: Christoph Anton Mitterer <calestyo@scientia.org>
Cc: Dirk Nichterwitz <dnichterwitz@m4com.de>, cryptsetup@lists.linux.dev
Subject: Re: Boot with encrypted disk but only with USB Stick
Date: Tue, 4 Mar 2025 18:28:49 +0100 [thread overview]
Message-ID: <Z8c4UYAPMufG3viH@tansi.org> (raw)
In-Reply-To: <8e675198233bd0fa461bd66fafcd37506f5e20c9.camel@scientia.org>
On Tue, Mar 04, 2025 at 14:07:47 CET, Christoph Anton Mitterer wrote:
> On Tue, 2025-03-04 at 11:19 +0100, Dirk Nichterwitz wrote:
> > I addes a
> > keyfile on a usb stick and this works to boot automaticaly when
> > plugged in .
> > But ist her a way to configure the system to only boot with stick ?
> > because
> > if i unplug the stick the system ask für passphrase.
> >
> > But i want a system only works with stick and no way to do a other
> > boot.
>
> Not sure what exactly you want:
>
> You can simply install your bootloader, kernel and initramfs on the USB
> stick (along with any keys needed for decryption).
>
> Most BIOSes/UEFIs support booting from USB.
>
> That way, an attacker cannot mess with these parts, which would
> otherwise be completely open.
> Of course a powerful enough attacker could still replace your firmware.
> And of course this only makes sense if you then keep your USB stick
> with you "all the time".
I did a scenario where the boot-stick was in a safe
woth limited access in an office.
That was a special case with a hard-coded disc-encryption
password that was only on the stick. The idea was that
a trusted non-IT person could reboot the server if needed
and then lock up the stick again. The implementation was
via a custom initrd, which is really not that hard to do.
Essentially you just change the boot-script called by
init in there. (No idea what Systemd requires though, I do
not use it.)
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
next prev parent reply other threads:[~2025-03-04 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 10:19 Boot with encrypted disk but only with USB Stick Dirk Nichterwitz
2025-03-04 13:07 ` Christoph Anton Mitterer
2025-03-04 17:28 ` Arno Wagner [this message]
2025-03-04 20:31 ` Michael Kjörling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z8c4UYAPMufG3viH@tansi.org \
--to=wagner@arnowagner.info \
--cc=arno@wagner.name \
--cc=calestyo@scientia.org \
--cc=cryptsetup@lists.linux.dev \
--cc=dnichterwitz@m4com.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.