From: "JohnW" <johnxw@amazon.com>
To: cip-dev@lists.cip-project.org
Subject: Re: Adding swap space to the encrypted partition
Date: Mon, 10 Jun 2024 20:31:41 -0700 [thread overview]
Message-ID: <19666.1718076701122955939@lists.cip-project.org> (raw)
In-Reply-To: <26684.1718045165094836518@lists.cip-project.org>
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
I tried adding the following before the rootfs partition in the kickstart file.
>
> part swap --use-label --size 2G --label swap1 --fstype=swap --fsoptions=sw
and also tried updating https://github.com/ilbers/isar/blob/2c76d889035ea05114b1a31bb73b025c0247a278/scripts/lib/wic/plugins/imager/direct.py#L105 to allow swap to be added to the fstab. CRYPT_PARTITIONS has been updated to
>
>
> CRYPT_PARTITIONS = "swap1:swap:reencrypt platform:/:reencrypt"
also tried
>
> CRYPT_PARTITIONS = "swap1::reencrypt platform:/:reencrypt"
The image booted into initramfs and based on the debug log it says
>
> Begin: Encryption of /dev/sda2 ... cannot resize partition. unsupport
> fstype: swap
Regards,
John
[-- Attachment #2: Type: text/html, Size: 964 bytes --]
next prev parent reply other threads:[~2024-06-11 3:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 16:51 Adding swap space to the encrypted partition JohnW
2024-06-06 8:17 ` [cip-dev] " Gylstorff Quirin
2024-06-06 22:49 ` JohnW
2024-06-10 8:59 ` [cip-dev] " Gylstorff Quirin
2024-06-10 18:46 ` JohnW
2024-06-11 3:31 ` JohnW [this message]
2024-06-11 5:37 ` [cip-dev] " quirin.gylstorff
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=19666.1718076701122955939@lists.cip-project.org \
--to=johnxw@amazon.com \
--cc=cip-dev@lists.cip-project.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox