Verified Commit 9298590d authored by Michal Hrusecky's avatar Michal Hrusecky 🐉 Committed by Josef Schlehofer
Browse files

turris1x-btrfs: Import factory snapshot during migration

parent 3ac29bf8
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=turris1x-btrfs
PKG_VERSION:=2.0
PKG_VERSION:=2.1
PKG_RELEASE:=1
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
......
......@@ -144,6 +144,9 @@ migrate_to_sdcard() {
mount -o bind / "$tmp/src" || die "Can't bind btrfs mount."
tar -C "$tmp/src" -cf - . | tar -C "$tmp/target/@" -xf - || die "Filesystem copy failed!"
# import factory image
schnapps import -f https://repo.turris.cz/hbs/medkit/turris1x-medkit-latest.tar.gz
# Copy kernel image and DTB to FAT partition
mkdir -p "$tmp/@/boot/tefi"
mount "${SDCARD}p1" "$tmp/target/@/boot/tefi" || die "Can't mount fat"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment