This commit is contained in:
simono41 2018-03-05 08:19:57 +01:00
parent bc432ae80b
commit 5f7630d502
2 changed files with 12 additions and 1 deletions

View file

@ -8,7 +8,16 @@ run_hook ()
read -p "Welches Laufwerk soll eine cow_device erhalten? /dev/sda : " formatdevice
[[ -z "${formatdevice}" ]] && formatdevice=/dev/sda
sfdisk -a 2048 -n 3:: -c 3:"cow_device" -t 3:8300 ${formatdevice}
fdisk ${formatdevice} <<EOT
p
n
p
w
EOT
mkfs.btrfs -f -L cow_device ${formatdevice}3
launch_interactive_shell

View file

@ -17,6 +17,7 @@ build()
add_binary blockdev
add_binary fdisk
add_binary sfdisk
add_binary sgdisk
add_binary hexdump
add_binary losetup
add_binary mkswap
@ -29,6 +30,7 @@ build()
add_binary fsck.ext4
add_binary lsattr
add_binary mkfs.ext4
add_binary mkfs.btrfs
add_binary tune2fs
# xfsprogs