From: "quirin.gylstorff@siemens.com" <quirin.gylstorff@siemens.com>
To: "cip-dev@lists.cip-project.org" <cip-dev@lists.cip-project.org>
Subject: Re: [cip-dev] Adding swap space to the encrypted partition
Date: Tue, 11 Jun 2024 05:37:42 +0000 [thread overview]
Message-ID: <PR3PR10MB40965C14B1B94F5ACE3EBD1081C72@PR3PR10MB4096.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <19666.1718076701122955939@lists.cip-project.org>
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
Hi John,
Ok that is fixable we need to add an additional case in the crypt script for resizing swap in https://gitlab.com/cip-project/cip-core/isar-cip-core/-/blob/master/recipes-initramfs/initramfs-crypt-hook/files/encrypt_partition.script?ref_type=heads#L80
Can you send a patch ?
Best regards
Quirin
________________________________
Von: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> im Auftrag von JohnW via lists.cip-project.org <johnxw=amazon.com@lists.cip-project.org>
Gesendet: Tuesday, June 11, 2024 5:31:41 AM
An: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org>
Betreff: Re: [cip-dev] Adding swap space to the encrypted partition
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: 2489 bytes --]
prev parent reply other threads:[~2024-06-11 5:37 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
2024-06-11 5:37 ` quirin.gylstorff [this message]
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=PR3PR10MB40965C14B1B94F5ACE3EBD1081C72@PR3PR10MB4096.EURPRD10.PROD.OUTLOOK.COM \
--to=quirin.gylstorff@siemens.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