History

Fix regressions in the netboot generator scripts

Michael Aldridge committed 8 years ago

Commit 8bf037d1 parent 85bf0421 file · +4 −2Browse files

Unified · Split

mknet.sh.in+4−2
@@ -158,14 +158,16 @@ info_msg "Install kernel and additional required netboot packages" · 157 unmodified lines
158# dracut-network provides the in-initrd network stack dialog is needed158# dracut-network provides the in-initrd network stack dialog is needed
159# by the install environment. ${INITRAMFS_COMPRESSION} is the name of159# by the install environment. ${INITRAMFS_COMPRESSION} is the name of
160# the compressor we want to use (lz4 by default).160# the compressor we want to use (lz4 by default).
161if [ -z "${XBPS_TARGET_ARCH}" ] ; then161if [ -z "${XBPS_TARGET_ARCH##*x86*}" ] ; then
162 # This platform is x86 or compatible, we should use162 # This platform is x86 or compatible, we should use
163 # syslinux/pxelinux to boot the system.163 # syslinux/pxelinux to boot the system.
164 info_msg "Selecting syslinux bootloader"
164 bootloader_pkg=syslinux165 bootloader_pkg=syslinux
165else166else
166 # This is likely an arm platform of some kind. In general these167 # This is likely an arm platform of some kind. In general these
167 # either have u-boot or a u-boot compatible loader, so we'll use168 # either have u-boot or a u-boot compatible loader, so we'll use
168 # that to produce a uImage and a uInitrd169 # that to produce a uImage and a uInitrd
170 info_msg "Selecting u-boot bootloader"
169 bootloader_pkg=uboot-mkimage171 bootloader_pkg=uboot-mkimage
170fi172fi
171run_cmd_target "xbps-install $XBPS_CONFFILE $XBPS_CACHEDIR $XBPS_REPOSITORY -r $ROOTFS -Sy ${KERNELPKG-linux} dracut binutils dracut-network dialog ${INITRAMFS_COMPRESSION-xz} ${bootloader_pkg}"173run_cmd_target "xbps-install $XBPS_CONFFILE $XBPS_CACHEDIR $XBPS_REPOSITORY -r $ROOTFS -Sy ${KERNELPKG-linux} dracut binutils dracut-network dialog ${INITRAMFS_COMPRESSION-xz} ${bootloader_pkg}"
@@ -194,7 +196,7 @@ run_cmd_chroot "$ROOTFS" "env -i /usr/bin/dracut \ · 22 unmodified lines
194[ $? -ne 0 ] && die "Failed to generate the initramfs"196[ $? -ne 0 ] && die "Failed to generate the initramfs"
195 197
196info_msg "Collect netboot components"198info_msg "Collect netboot components"
197if [ ${bootloader_pkg} == "syslinux" ] ; then199if [ ${bootloader_pkg} = "syslinux" ] ; then
198 # The whole point of this endeavor is to get the files needed for PXE.200 # The whole point of this endeavor is to get the files needed for PXE.
199 # Now that they have been generated, we copy them out of the doomed201 # Now that they have been generated, we copy them out of the doomed
200 # ROOTFS and into the $BOOT_DIR where we're staging the rest of the202 # ROOTFS and into the $BOOT_DIR where we're staging the rest of the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t