Skip to content
Snippets Groups Projects
Commit a1424446 authored by Gerardo Pozzi's avatar Gerardo Pozzi
Browse files

[archiso] Add btrfs support as filesystem for *.fs.sfs


Implements FS#30378

Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent 99810c2a
No related branches found
No related tags found
No related merge requests found
...@@ -396,6 +396,7 @@ EOF ...@@ -396,6 +396,7 @@ EOF
+ squashfs-tools for mksquashfs + squashfs-tools for mksquashfs
+ libisoburn for xorriso + libisoburn for xorriso
+ rsync for rsync + rsync for rsync
+ btrfs-progs for mkfs.btrfs (optional)
** For configs/releng build.sh needs theses packages (build host): ** For configs/releng build.sh needs theses packages (build host):
+ dosfstools for mkfs.vfat + dosfstools for mkfs.vfat
......
...@@ -298,7 +298,7 @@ _mksfs () { ...@@ -298,7 +298,7 @@ _mksfs () {
# Makes a filesystem from a source directory. # Makes a filesystem from a source directory.
# $1: Source directory # $1: Source directory
# $2: Target filesystem type (ext4 | ext3 | ext2 | xfs) # $2: Target filesystem type (ext4 | ext3 | ext2 | xfs | btrfs)
# $3: Size of target filesystem. Can be an absolute value in MiB, or relative value of desired free space (1% - 99%) # $3: Size of target filesystem. Can be an absolute value in MiB, or relative value of desired free space (1% - 99%)
_mkfs () { _mkfs () {
local _src="${1}" local _src="${1}"
...@@ -351,6 +351,9 @@ _mkfs () { ...@@ -351,6 +351,9 @@ _mkfs () {
xfs) xfs)
mkfs.xfs ${_qflag} "${_fs_img}" mkfs.xfs ${_qflag} "${_fs_img}"
;; ;;
btrfs)
mkfs.btrfs -M "${_fs_img}"
;;
*) *)
_msg_error "Invalid filesystem: ${_fs_type}" 1 _msg_error "Invalid filesystem: ${_fs_type}" 1
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment