public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/2] partresize: remove buggy code
@ 2023-06-03  7:01 Arne Fitzenreiter
  0 siblings, 0 replies; 2+ messages in thread
From: Arne Fitzenreiter @ 2023-06-03  7:01 UTC (permalink / raw)
  To: development

[-- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/2] partresize: remove buggy code
@ 2023-06-05  7:30 Arne Fitzenreiter
  0 siblings, 0 replies; 2+ messages in thread
From: Arne Fitzenreiter @ 2023-06-05  7:30 UTC (permalink / raw)
  To: development

[-- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-05  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-03  7:01 [PATCH 1/2] partresize: remove buggy code Arne Fitzenreiter
2023-06-05  7:30 Arne Fitzenreiter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox