[WIP] Use systemd-growfs instead of own scripts to expand the rootfs

This commit is contained in:
j1nx 2021-01-28 13:59:14 +01:00
parent 734b387faf
commit 607f7f7418
3 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#!/bin/bash
#
/usr/sbin/resizeSD &&
pip install /home/mycroft/vosk-0.3.17-cp38-cp38-linux_aarch64.whl &&
rm /etc/firstboot

View File

@ -11,7 +11,6 @@ FIRSTBOOT_SERVICE_LICENSE = Apache License 2.0
FIRSTBOOT_SERVICE_LICENSE_FILES = LICENSE
define FIRSTBOOT_SERVICE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/resizeSD $(TARGET_DIR)/usr/sbin/
$(INSTALL) -m 0755 $(@D)/firstboot $(TARGET_DIR)/usr/sbin/
$(INSTALL) -D -m 644 $(@D)/firstboot.service \
$(TARGET_DIR)/usr/lib/systemd/system/firstboot.service

View File

@ -1,5 +1,5 @@
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
/dev/root / ext2 rw,noauto,x-systemd.growfs 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0