mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-25 07:02:22 +00:00
DragonFly BSD support
This commit is contained in:
BIN
Unix/ventoy_unix/DragonFly/dmtable
Normal file
BIN
Unix/ventoy_unix/DragonFly/dmtable
Normal file
Binary file not shown.
30
Unix/ventoy_unix/DragonFly/mkinitrd.sh
Normal file
30
Unix/ventoy_unix/DragonFly/mkinitrd.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
INITRD_SIZE=12
|
||||
INITRD_FILE=dragonfly.mfs
|
||||
|
||||
rm -f ${INITRD_FILE}
|
||||
rm -f ${INITRD_FILE}.xz
|
||||
|
||||
VN_DEV=$(vnconfig -c -S ${INITRD_SIZE}m -Z -T vn ${INITRD_FILE})
|
||||
newfs -i 131072 -m 0 /dev/${VN_DEV}s0
|
||||
mount_ufs /dev/${VN_DEV}s0 /mnt
|
||||
|
||||
cp -a sbin /mnt/
|
||||
chmod -R 777 /mnt/sbin
|
||||
|
||||
mkdir /mnt/dev
|
||||
mkdir /mnt/new_root
|
||||
mkdir /mnt/tmp
|
||||
|
||||
dd if=/dev/zero of=./data bs=1M count=8
|
||||
|
||||
cat ./dmtable ./data ./dmtable > /mnt/dmtable
|
||||
|
||||
umount /mnt
|
||||
|
||||
rm -f ./data
|
||||
|
||||
xz ${INITRD_FILE}
|
||||
|
||||
vnconfig -u ${VN_DEV}
|
BIN
Unix/ventoy_unix/DragonFly/sbin/dmsetup
Normal file
BIN
Unix/ventoy_unix/DragonFly/sbin/dmsetup
Normal file
Binary file not shown.
BIN
Unix/ventoy_unix/DragonFly/sbin/init
Normal file
BIN
Unix/ventoy_unix/DragonFly/sbin/init
Normal file
Binary file not shown.
Reference in New Issue
Block a user