Initial release
This commit is contained in:
parent
6ddf982a55
commit
f369ce1def
5
targets/Linux
Normal file
5
targets/Linux
Normal file
|
@ -0,0 +1,5 @@
|
|||
[ -z "$KERNEL" ] && KERNEL="/vmlinuz"
|
||||
[ -z "$MKFS" ] && MKFS="mke2fs -F"
|
||||
[ -z "$MOUNT" ] && MOUNT="$SUDO mount -o loop"
|
||||
[ -z "$TUNE2FS" ] && TUNE2FS="tune2fs"
|
||||
[ -z "$UMOUNT" ] && UMOUNT="$SUDO umount"
|
28
targets/Linux-i386
Normal file
28
targets/Linux-i386
Normal file
|
@ -0,0 +1,28 @@
|
|||
source "`dirname $0`/Apps/Devel/src/scripts/targets/Linux"
|
||||
|
||||
|
||||
#functions
|
||||
target_iso()
|
||||
{
|
||||
$MKDIR "$DESTDIR/boot/grub" || exit 2
|
||||
$CP "/usr/lib/grub/i386-pc/stage2_eltorito" \
|
||||
"$DESTDIR/boot/grub" || exit 2
|
||||
$CP "$KERNEL" "$DESTDIR/boot/uKernel" || exit 2
|
||||
if [ ! -z "$RAMDISK_IMAGE" ]; then
|
||||
$CP "$RAMDISK_IMAGE" "$DESTDIR/boot/initrd.img"
|
||||
GRUB_INITRD="initrd /boot/initrd.img"
|
||||
fi
|
||||
$CAT > "$DESTDIR/boot/grub/menu.lst" << EOF
|
||||
default 0
|
||||
timeout 10
|
||||
|
||||
title DeforaOS
|
||||
kernel /boot/uKernel $KERNEL_ARGS
|
||||
$GRUB_INITRD
|
||||
EOF
|
||||
[ ! -z "$KERNEL_MODULES" ] && cat "$KERNEL_MODULES" | \
|
||||
(cd "$DESTDIR" && tar xzf -)
|
||||
$MKISOFS -b "boot/grub/stage2_eltorito" -no-emul-boot \
|
||||
-boot-load-size 4 -boot-info-table \
|
||||
-o "$CDROM_IMAGE" "$DESTDIR"
|
||||
}
|
19
targets/NetBSD
Normal file
19
targets/NetBSD
Normal file
|
@ -0,0 +1,19 @@
|
|||
[ -z "$KERNEL" ] && KERNEL="/netbsd"
|
||||
[ -z "$MKFS" ] && MKFS="newfs -F"
|
||||
[ -z "$MOUNT" ] && MOUNT="netbsd_mount"
|
||||
[ -z "$UMOUNT" ] && UMOUNT="netbsd_umount"
|
||||
|
||||
|
||||
#functions
|
||||
netbsd_mount()
|
||||
{
|
||||
$SUDO vnconfig -c vnd0 "$1" &&
|
||||
$SUDO mount /dev/vnd0a "$2"
|
||||
}
|
||||
|
||||
|
||||
netbsd_umount()
|
||||
{
|
||||
$SUDO umount "$1" &&
|
||||
$SUDO vnconfig -u vnd0
|
||||
}
|
1
targets/NetBSD-i386
Normal file
1
targets/NetBSD-i386
Normal file
|
@ -0,0 +1 @@
|
|||
source "`dirname $0`/Apps/Devel/src/scripts/targets/NetBSD"
|
Loading…
Reference in New Issue
Block a user