From: Arne Fitzenreiter <arne_f@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 1/2] partresize: remove buggy code
Date: Sat, 03 Jun 2023 09:01:02 +0200 [thread overview]
Message-ID: <20230603070103.2989-1-arne_f@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
DRV is not defined so this code is useless.
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
---
src/initscripts/system/partresize | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partresize
index 272fbe482..832bc7237 100644
--- a/src/initscripts/system/partresize
+++ b/src/initscripts/system/partresize
@@ -112,11 +112,6 @@ case "${1}" in
boot_mesg "Growing root partition to maximum size..."
echo -e ',+' | sfdisk --no-reread -f -N${part_num} "${root_dev}" 2>/dev/null
- # Update c,h,s values of the boot partition...
- if [ ${part_num} -ne 1 -a -b "${root_dev}1" ]; then
- echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} &> /dev/null
- fi
-
# The filesystem should be resized after
# this operation
touch /.resizefs
--
2.38.1
next reply other threads:[~2023-06-03 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-03 7:01 Arne Fitzenreiter [this message]
2023-06-05 7:30 Arne Fitzenreiter
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=20230603070103.2989-1-arne_f@ipfire.org \
--to=arne_f@ipfire.org \
--cc=development@lists.ipfire.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