From owner-p4-releng Mon Nov 18 12:25:58 2002 Delivered-To: p4-releng@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9602A37B404; Mon, 18 Nov 2002 12:25:56 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CF4937B401 for ; Mon, 18 Nov 2002 12:25:56 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F12A543E3B for ; Mon, 18 Nov 2002 12:25:55 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAIKN1mV016098 for ; Mon, 18 Nov 2002 12:23:01 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAIKN1aU016095 for perforce@freebsd.org; Mon, 18 Nov 2002 12:23:01 -0800 (PST) Date: Mon, 18 Nov 2002 12:23:01 -0800 (PST) Message-Id: <200211182023.gAIKN1aU016095@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 21234 for review To: Perforce Change Reviews Sender: owner-p4-releng@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=21234 Change 21234 by jhb@jhb_laptop on 2002/11/18 12:22:35 Merge over some changes needed for IA64 releases so Marcel can cut the DP2 release. Affected files ... .. //depot/releng/5_dp2/src/release/ia64/boot_crunch.conf#4 integrate .. //depot/releng/5_dp2/src/usr.sbin/sysinstall/install.c#6 integrate Differences ... ==== //depot/releng/5_dp2/src/release/ia64/boot_crunch.conf#4 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/release/ia64/boot_crunch.conf,v 1.2 2002/11/14 01:36:04 marcel Exp $ +# $FreeBSD: src/release/ia64/boot_crunch.conf,v 1.3 2002/11/18 08:32:45 marcel Exp $ buildopts -DRELEASE_CRUNCH -Dlint @@ -12,8 +12,8 @@ srcdirs /usr/src/sbin progs dhclient fsck_ffs ifconfig -progs mount_nfs newfs newfs_msdos route rtsol -progs tunefs +progs mount_msdosfs mount_nfs newfs newfs_msdos +progs route rtsol tunefs srcdirs /usr/src/usr.bin progs find minigzip sed ==== //depot/releng/5_dp2/src/usr.sbin/sysinstall/install.c#6 (text+ko) ==== @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $FreeBSD: src/usr.sbin/sysinstall/install.c,v 1.332 2002/11/14 01:46:20 marcel Exp $ + * $FreeBSD: src/usr.sbin/sysinstall/install.c,v 1.333 2002/11/18 08:37:46 marcel Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -1046,12 +1046,27 @@ } #if defined(__ia64__) else if (c1->type == efi && c1->private_data) { + char bootdir[FILENAME_MAX]; + char efi_bootdir[FILENAME_MAX]; PartInfo *pi = (PartInfo *)c1->private_data; if (pi->newfs && (!upgrade || !msgNoYes("You are upgrading - are you SURE you want to newfs /dev/%s?", c1->name))) command_shell_add(pi->mountpoint, "%s %s/dev/%s", pi->newfs_cmd, RunningAsInit ? "/mnt" : "", c1->name); command_func_add(pi->mountpoint, Mount, c1->name); + + /* + * Create a directory boot on the EFI filesystem and create a + * link boot on the root filesystem pointing to the one on the + * EFI filesystem. That way, we install the loader, kernel + * and modules on the EFI filesystem. + */ + sprintf(bootdir, "%s", RunningAsInit ? "/mnt" : ""); + sprintf(efi_bootdir, "%s/%s", bootdir, pi->mountpoint); + strcat(bootdir, "/boot"); + strcat(efi_bootdir, "/boot"); + Mkdir(efi_bootdir); + symlink(efi_bootdir, bootdir); } #endif } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-releng" in the body of the message