mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-23 03:27:01 -04:00
DragonFly BSD support
This commit is contained in:
parent
fb7008f49a
commit
bfe194c190
16 changed files with 1407 additions and 0 deletions
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.
Loading…
Add table
Add a link
Reference in a new issue