aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2019-03-28 18:07:07 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-04-06 16:31:10 +0200
commit727c3df5bb017e32e05258e31348d45187177347 (patch)
treec95e6d41a75ee132fbe073a7f33d1e32ccdce958 /target/linux/mvebu/base-files
parent55b4ff7f73b0e92fc9d99febfaa8429a9c9c1e06 (diff)
downloadupstream-727c3df5bb017e32e05258e31348d45187177347.tar.gz
upstream-727c3df5bb017e32e05258e31348d45187177347.tar.bz2
upstream-727c3df5bb017e32e05258e31348d45187177347.zip
mvebu: shrink amount of packages and reorganize them
Since most of devices using SD card image to boot, use ext4 as boot files system we can drop fat fs related packages. Also move packages which are added repeatedly across subtargets to their default packages, with droping the ones that are enabled in target kernel configugation. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/mvebu/base-files')
-rw-r--r--target/linux/mvebu/base-files/lib/preinit/79_move_config14
1 files changed, 10 insertions, 4 deletions
diff --git a/target/linux/mvebu/base-files/lib/preinit/79_move_config b/target/linux/mvebu/base-files/lib/preinit/79_move_config
index 1735ad8849..73ddf09155 100644
--- a/target/linux/mvebu/base-files/lib/preinit/79_move_config
+++ b/target/linux/mvebu/base-files/lib/preinit/79_move_config
@@ -3,12 +3,18 @@
BOOTPART=/dev/mmcblk0p1
+. /lib/functions.sh
+
move_config() {
if [ -b $BOOTPART ]; then
- insmod nls_cp437
- insmod nls_iso8859-1
- insmod fat
- insmod vfat
+ case $(board_name) in
+ turris-omnia)
+ insmod nls_cp437
+ insmod nls_iso8859-1
+ insmod fat
+ insmod vfat
+ ;;
+ esac
mkdir -p /boot
mount -o rw,noatime $BOOTPART /boot
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /