Verified Commit 1ccf4c81 authored by Josef Schlehofer's avatar Josef Schlehofer 💬
Browse files

turris-btrfs: import factory snapshot during migration

parent 8594b5f8
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=turris-btrfs-migrate
PKG_VERSION:=1.5
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
......@@ -63,6 +63,8 @@ btrfs subvolume create /tmp/btrfs-convert/target/@ || die "Can't create subvolum
mount -o bind / /tmp/btrfs-convert/src || die "Can't bind btrfs mount."
tar -C /tmp/btrfs-convert/src -cf - . | tar -C /tmp/btrfs-convert/target/@ -xf - || die "Filesystem copy failed!"
schnapps import -f https://repo.turris.cz/hbs/medkit/turris1x-medkit-latest.tar.gz
mkdir -p /tmp/btrfs-convert/target/@/boot/tefi
mount /dev/mmcblk0p1 /tmp/btrfs-convert/target/@/boot/tefi || die "Can't mount fat"
cp /boot/zImage /boot/fdt /tmp/btrfs-convert/target/@/boot/tefi || die "Can't copy kernel"
......
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