istoreos/package/diy/expand-overlay/Makefile
xiexiaobao c801aef709 feat: add custom packages
- frpc-config: pre-configure frpc tunnels (SSH/Jellyfin/Navidrome)
- navidrome-autoinit: auto-create Navidrome container on first boot
- expand-overlay: auto-resize eMMC overlay partition
2026-06-24 14:54:44 +08:00

46 lines
1.0 KiB
Makefile

#
# Copyright (C) 2026 xiexiaobao
#
# This is free software, licensed under the GPL 2.0 license.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=expand-overlay
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=xiexiaobao
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
define Package/expand-overlay
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Auto-expand overlay partition on first boot
DEPENDS:=+sfdisk +e2fsprogs
PKGARCH:=all
endef
define Package/expand-overlay/description
Auto-resize the NanoPi R6C eMMC overlay partition (mmcblk2p3)
to fill all remaining unallocated space on first boot.
Two-stage: uci-defaults resizes partition table, init.d resizes filesystem.
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/expand-overlay/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/expand-overlay.sh $(1)/etc/uci-defaults/99-expand-overlay
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/expand-overlay.init $(1)/etc/init.d/expand-overlay
endef
$(eval $(call BuildPackage,expand-overlay))