diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d8fe4fa70f618843e9ab2df67167b49565c71f25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.project diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..78fcd70defcd16bd75c6eae457c7b4e06d181a53 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,12 @@ +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d737ce6b06aa87d18fd14e889dd3d94f6b2856c3 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# zfs-format-disk + +This script is responsible to properly create the partitions table required for a ZFS disk to be used on Proxmox VE server. + +## Installation +As root: +``` +curl http://git.patrikdufresne.com/pdsl/zfs-format-disk/raw/master/zfs-format-disk > /usr/local/sbin/zfs-format-disk +chmod +x /usr/local/sbin/zfs-format-disk +``` + +# Usage +To create the partition and instal grub on the disk: +``` +zfs-format-disk /dev/sdf +``` diff --git a/zfs-format-disk b/zfs-format-disk index 05ff58037db1d5586f2f296cabad66558380710b..dd29191a92e419759199180afeab5ce078869b9c 100644 --- a/zfs-format-disk +++ b/zfs-format-disk @@ -1,4 +1,17 @@ #!/bin/bash +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# # This script should format the given disk for ZFS partition # # Taken from https://github.com/proxmox/pve-installer/blob/master/proxinstall