https://github.com/finkregh/deboostrap-zfs-root
format a disk with ZFS and deboostrap debian (zfs on root)
https://github.com/finkregh/deboostrap-zfs-root
debian debootstrap zfs zfsonlinux zfsonroot zol
Last synced: 7 months ago
JSON representation
format a disk with ZFS and deboostrap debian (zfs on root)
- Host: GitHub
- URL: https://github.com/finkregh/deboostrap-zfs-root
- Owner: Finkregh
- License: unlicense
- Created: 2019-10-23T21:17:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T14:17:21.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T04:40:30.597Z (7 months ago)
- Topics: debian, debootstrap, zfs, zfsonlinux, zfsonroot, zol
- Language: Shell
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
deboostrap debian to ZFS
=========================This
* uses BIOS instead of UEFI (patches welcome)
* formats the target drive with ZFS
* adds two pools (boot+rest)
* add datasets for various directories
* deboostraps debian sidYou can verify the installation wih e.g. qemu (eventually change the path of
`/dev/sda` to wherever you installed to:```
qemu-system-x86_64 -snapshot -m 3G -enable-kvm -drive file=/dev/sda,if=virtio -net none -boot c -monitor stdio -netdev user,id=mynet0,net=192.168.76.0/24,dhcpstart=192.168.76.9 -device e1000,netdev=mynet0
# you can send keypresses via e.g. `sendkey ctrl-alt-f9`
```This has been built with the help of this great howto:
adding swap
------------
```shell
zfs create -V 4G -b $(getconf PAGESIZE) -o compression=zle \
-o logbias=throughput -o sync=always \
-o primarycache=metadata -o secondarycache=none \
-o com.sun:auto-snapshot=false rpool/swapmkswap -f /dev/zvol/rpool/swap
echo /dev/zvol/rpool/swap none swap defaults 0 0 >> /etc/fstab
```