mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
fstools: split snapshot-tool into its own package
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
fd7e15d493
commit
6ccf400be1
@ -50,6 +50,13 @@ define Package/fstools/config
|
|||||||
This option makes it possible to use extroot functionality if the root filesystem resides on an UBIFS partition
|
This option makes it possible to use extroot functionality if the root filesystem resides on an UBIFS partition
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/snapshot-tool
|
||||||
|
SECTION:=base
|
||||||
|
CATEGORY:=Base system
|
||||||
|
TITLE:=rootfs snapshoting tool
|
||||||
|
DEPENDS:=+libubox
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/block-mount
|
define Package/block-mount
|
||||||
SECTION:=base
|
SECTION:=base
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
@ -60,12 +67,18 @@ endef
|
|||||||
define Package/fstools/install
|
define Package/fstools/install
|
||||||
$(INSTALL_DIR) $(1)/sbin $(1)/lib
|
$(INSTALL_DIR) $(1)/sbin $(1)/lib
|
||||||
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{mount_root,jffs2reset,snapshot_tool} $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{mount_root,jffs2reset} $(1)/sbin/
|
||||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libfstools.so $(1)/lib/
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libfstools.so $(1)/lib/
|
||||||
$(INSTALL_BIN) ./files/snapshot $(1)/sbin/
|
|
||||||
$(LN) jffs2reset $(1)/sbin/jffs2mark
|
$(LN) jffs2reset $(1)/sbin/jffs2mark
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/snapshot-tool/install
|
||||||
|
$(INSTALL_DIR) $(1)/sbin
|
||||||
|
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/snapshot_tool $(1)/sbin/
|
||||||
|
$(INSTALL_BIN) ./files/snapshot $(1)/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/block-mount/install
|
define Package/block-mount/install
|
||||||
$(INSTALL_DIR) $(1)/sbin $(1)/lib $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/ $(1)/etc/uci-defaults/
|
$(INSTALL_DIR) $(1)/sbin $(1)/lib $(1)/usr/sbin $(1)/etc/hotplug.d/block $(1)/etc/init.d/ $(1)/etc/uci-defaults/
|
||||||
|
|
||||||
@ -88,4 +101,5 @@ define Build/InstallDev
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,fstools))
|
$(eval $(call BuildPackage,fstools))
|
||||||
|
$(eval $(call BuildPackage,snapshot-tool))
|
||||||
$(eval $(call BuildPackage,block-mount))
|
$(eval $(call BuildPackage,block-mount))
|
||||||
|
Loading…
Reference in New Issue
Block a user