Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (22 sloc) 624 Bytes
#!/bin/sh
. config/options
if [ "$1" = generator ]; then
cp -PR $ROOTFS/etc $INSTALL
rm -rf $ROOTFS/etc
else
rm -rf $INSTALL/etc
fi
mkdir -p $INSTALL/isolinux
cp -P $ROOTFS/boot/* $INSTALL
$SCRIPTS/initramfs image
$SCRIPTS/squashfs
if [ "$TARGET_ARCH" = i386 ] || [ "$TARGET_ARCH" = x86_64 ]; then
$SCRIPTS/installdev syslinux
cp -PR $ROOT/$TOOLCHAIN/boot/* $INSTALL/isolinux
$SCRIPTS/installdev grub-efi
cp -PR $ROOT/$TOOLCHAIN/efi $INSTALL
elif [ "$TARGET_ARCH" = powerpc ] || [ "$TARGET_ARCH" = powerpc64 ]; then
$SCRIPTS/installdev yaboot
cp -PR $ROOT/$TOOLCHAIN/boot/* $INSTALL/isolinux
fi
exit 0