cdrom: Rename ISO file

Message ID 20220811163817.1503583-1-michael.tremer@ipfire.org
State Accepted
Commit fbd0608c2cb5372fff7857065ec7e605b1bf9cf7
Headers
Series cdrom: Rename ISO file |

Commit Message

Michael Tremer Aug. 11, 2022, 4:38 p.m. UTC
  This is cosmetic change to have the name of the ISO file similar to the
flash image and also have all parts of it in a reasonable order.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/cdrom | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
  

Comments

Peter Müller Aug. 11, 2022, 6:27 p.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> This is cosmetic change to have the name of the ISO file similar to the
> flash image and also have all parts of it in a reasonable order.
> 
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>  lfs/cdrom | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/lfs/cdrom b/lfs/cdrom
> index ff4821fb5..a47faa49e 100644
> --- a/lfs/cdrom
> +++ b/lfs/cdrom
> @@ -123,6 +123,8 @@ GRUB_EFI_MODULES = \
>  	true \
>  	usb_keyboard
>  
> +ISO_FILE = /install/images/$(SNAME)-$(VERSION)-core$(CORE)-$(BUILD_ARCH).iso
> +
>  ###############################################################################
>  # Top-level Rules
>  ###############################################################################
> @@ -246,9 +248,8 @@ endif
>  						xargs md5sum > md5sum.txt
>  
>  	mkdir -p /install/images
> -	cd $(DIR_TMP)/cdrom && mkisofs $(ISO_ARGS) \
> -		-o /install/images/$(SNAME)-$(VERSION).$(BUILD_ARCH)-full-core$(CORE).iso .
> +	cd $(DIR_TMP)/cdrom && mkisofs $(ISO_ARGS) -o $(ISO_FILE) .
>  
>  ifeq "$(HAS_ISOLINUX)" "1"
> -	isohybrid $(ISOHYBRID_ARGS) /install/images/$(SNAME)-$(VERSION).$(BUILD_ARCH)-full-core$(CORE).iso
> +	isohybrid $(ISOHYBRID_ARGS) $(ISO_FILE)
>  endif
  

Patch

diff --git a/lfs/cdrom b/lfs/cdrom
index ff4821fb5..a47faa49e 100644
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -123,6 +123,8 @@  GRUB_EFI_MODULES = \
 	true \
 	usb_keyboard
 
+ISO_FILE = /install/images/$(SNAME)-$(VERSION)-core$(CORE)-$(BUILD_ARCH).iso
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -246,9 +248,8 @@  endif
 						xargs md5sum > md5sum.txt
 
 	mkdir -p /install/images
-	cd $(DIR_TMP)/cdrom && mkisofs $(ISO_ARGS) \
-		-o /install/images/$(SNAME)-$(VERSION).$(BUILD_ARCH)-full-core$(CORE).iso .
+	cd $(DIR_TMP)/cdrom && mkisofs $(ISO_ARGS) -o $(ISO_FILE) .
 
 ifeq "$(HAS_ISOLINUX)" "1"
-	isohybrid $(ISOHYBRID_ARGS) /install/images/$(SNAME)-$(VERSION).$(BUILD_ARCH)-full-core$(CORE).iso
+	isohybrid $(ISOHYBRID_ARGS) $(ISO_FILE)
 endif