Module Name: src
Committed By: martin
Date: Mon Jun 24 07:43:33 UTC 2024
Modified Files:
src/distrib/common/bootimage: Makefile.bootimage
Log Message:
Try to give the root partition a usable (but unique enough) name
if we use GPT. This helps when booting without a bootloader (e.g. in
qemu) and passing boot arguments to identify the root partition.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/distrib/common/bootimage/Makefile.bootimage
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/common/bootimage/Makefile.bootimage
diff -u src/distrib/common/bootimage/Makefile.bootimage:1.37 src/distrib/common/bootimage/Makefile.bootimage:1.38
--- src/distrib/common/bootimage/Makefile.bootimage:1.37 Sat May 18 02:03:17 2024
+++ src/distrib/common/bootimage/Makefile.bootimage Mon Jun 24 07:43:33 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bootimage,v 1.37 2024/05/18 02:03:17 christos Exp $
+# $NetBSD: Makefile.bootimage,v 1.38 2024/06/24 07:43:33 martin Exp $
#
# Copyright (c) 2009, 2010, 2011 Izumi Tsutsui. All rights reserved.
#
@@ -548,7 +548,7 @@ ${WORKMBR}:
${DD} if=/dev/zero of=${WORKMBR} seek=$$((${IMAGESECTORS} - 1)) count=1
${TOOL_GPT} ${GPT_TIMESTAMP} ${WORKMBR} create
${TOOL_GPT} ${GPT_TIMESTAMP} ${WORKMBR} add -a 1m -s ${EFISECTORS} -t efi -l "EFI system"
- ${TOOL_GPT} ${GPT_TIMESTAMP} ${WORKMBR} add -a 1m -s ${FSSECTORS} -t ffs
+ ${TOOL_GPT} ${GPT_TIMESTAMP} ${WORKMBR} add -a 1m -s ${FSSECTORS} -t ffs -l "${INSTIMGBASE} root"
. if ${SWAPSECTORS} != 0
${TOOL_GPT} ${GPT_TIMESTAMP} ${WORKMBR} add -a 1m -s ${SWAPSECTORS} -t swap
. endif