24 lines
684 B
Bash
24 lines
684 B
Bash
apt-get install bmap-tools
|
|
|
|
# FIXME
|
|
# create function for ''bmap-tool create' that fixes the zfs_dmu_offset_next_sync issue
|
|
|
|
#function bmapcreate() {
|
|
# echo 1 | sudo tee -a /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
|
|
#
|
|
# BMAPFILE=$1
|
|
# IMAGE=$2
|
|
## test the extension to see if we need to decompress before creating the bmap
|
|
# if [ ${IMAGE:e} = 'xz']
|
|
# bmaptool create --output mobian-pinephone-20200905.img.bmap mobian-pinephone-20200905.img
|
|
# bmaptool create --output $BMAPFILE $IMAGE
|
|
#
|
|
# echo 0 | sudo tee -a /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
|
|
#}
|
|
|
|
|
|
#function bmapcopy() {
|
|
# bmaptool copy --bmap $BMAPFILE $IMAGE $BLOCKDEVICE
|
|
#}
|
|
|