From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] expand-on-first-boot: Allow expanding extended MBR partitions
Date: Wed, 10 Jun 2020 15:03:49 +0200 [thread overview]
Message-ID: <20200610130349.GO5077@yssyq.m.ilbers.de> (raw)
In-Reply-To: <a249bd40-a6fd-392b-e26f-aa5ef613e0ac@siemens.com>
On Wed, Jun 10, 2020 at 02:50:40PM +0200, Jan Kiszka wrote:
> > While probably a very uncommon layout, I am not sure how this
> > would behave when the EBR is not the last partition, but
> > somewhere in between. I am a bit worried it would silently wreak
> > havoc ...
>
> We should probably throw some test patterns at that. Could be done
> against a disk image file as well, I suppose.
That would be great.
> > sfdisk -d "${BOOT_DEV}" 2>/dev/null | grep -v last-lba | \
> > - sed 's|\('"${LAST_PART}"' .*, \)size=[^,]*, |\1|' | \
> > + sed 's|^\(.*, \)size=[^,]*, type=[f5]$|\1type=5|' | \
> > + sed 's|^\('"${LAST_PART}"' .*, \)size=[^,]*, |\1|' | \
>
> Would it make things worse or better to combine both sed expressions
> into the same sed call?
>From the performance PoV, yes. However, they tend to become less readable.
Perhaps we could assign them to three vars and use those... or anything else
without sacrificing any of both.
With kind regards,
Baurzhan.
next prev parent reply other threads:[~2020-06-10 13:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 8:02 Harald Seiler
2020-06-10 12:50 ` Jan Kiszka
2020-06-10 13:03 ` Baurzhan Ismagulov [this message]
2020-06-12 9:53 ` Harald Seiler
2020-06-12 18:42 ` Jan Kiszka
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=20200610130349.GO5077@yssyq.m.ilbers.de \
--to=ibr@radix50.net \
--cc=isar-users@googlegroups.com \
/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