Skip to content

Commit

Permalink
move lomorage in seperate step
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Apr 3, 2020
1 parent 41a15a6 commit 3450823
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IMG_NAME="lomorage"
STAGE_LIST="stage0 stage1 stage2 stage-localtunnel stage-share"
STAGE_LIST="stage0 stage1 stage2 stage-share stage-localtunnel stage-lomo"
ENABLE_SSH=1
6 changes: 6 additions & 0 deletions stage-lomo/00-install-packages/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
lomo-base
lomo-vips
lomo-backend
lomo-omxplayer
lomo-web
lomo-frame
10 changes: 10 additions & 0 deletions stage-lomo/01-lomo/01-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -e

install -m 644 files/logo_transparent.png "${ROOTFS_DIR}/usr/share/plymouth/debian-logo.png"
install -m 644 files/spinfinity.script "${ROOTFS_DIR}/usr/share/plymouth/themes/spinfinity/"
install -m 644 files/spinfinity.plymouth "${ROOTFS_DIR}/usr/share/plymouth/themes/spinfinity/"
install -m 755 files/update-lomod "${ROOTFS_DIR}/etc/cron.daily/"

on_chroot << EOF
plymouth-set-default-theme -R spinfinity
EOF
Binary file added stage-lomo/01-lomo/files/logo_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions stage-lomo/EXPORT_IMAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IMG_SUFFIX="-lite"
if [ "${USE_QEMU}" = "1" ]; then
export IMG_SUFFIX="${IMG_SUFFIX}-qemu"
fi
10 changes: 10 additions & 0 deletions stage-lomo/prerun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -e

if [ ! -d "${ROOTFS_DIR}" ]; then
copy_previous
fi

on_chroot << EOF
apt-get update
apt-get dist-upgrade -y
EOF
2 changes: 1 addition & 1 deletion stage1/00-boot-files/files/cmdline.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait logo.nologo quiet splash loglevel=0 vt.global_cursor_default=0 plymouth.ignore-serial-consoles
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait logo.nologo quiet splash loglevel=0 vt.global_cursor_default=0 plymouth.ignore-serial-consoles init=/usr/lib/raspi-config/init_resize.sh
6 changes: 0 additions & 6 deletions stage2/01-sys-tweaks/00-packages
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ zip
supervisor
python3 python3-pyudev python3-pygame
plymouth plymouth-themes
lomo-base
lomo-vips
lomo-backend
lomo-omxplayer
lomo-web
lomo-frame
iftop
tcpdump
python-serial python3-serial
Expand Down
5 changes: 0 additions & 5 deletions stage2/01-sys-tweaks/00-patches/07-resize-init.diff

This file was deleted.

1 change: 0 additions & 1 deletion stage2/01-sys-tweaks/00-patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
02-swap.diff
04-inputrc.diff
05-path.diff
07-resize-init.diff
7 changes: 0 additions & 7 deletions stage2/01-sys-tweaks/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@ install -m 644 files/console-setup "${ROOTFS_DIR}/etc/default/"

install -m 755 files/rc.local "${ROOTFS_DIR}/etc/"

install -m 755 files/update-lomod "${ROOTFS_DIR}/etc/cron.daily/"

install -m 644 files/logo_transparent.png "${ROOTFS_DIR}/usr/share/plymouth/debian-logo.png"
install -m 644 files/spinfinity.script "${ROOTFS_DIR}/usr/share/plymouth/themes/spinfinity/"
install -m 644 files/spinfinity.plymouth "${ROOTFS_DIR}/usr/share/plymouth/themes/spinfinity/"

on_chroot << EOF
systemctl disable hwclock.sh
systemctl disable nfs-common
systemctl disable rpcbind
plymouth-set-default-theme -R spinfinity
if [ "${ENABLE_SSH}" == "1" ]; then
systemctl enable ssh
Expand Down
Binary file removed stage2/01-sys-tweaks/files/logo_transparent.png
Binary file not shown.
1 change: 0 additions & 1 deletion stage2/01-sys-tweaks/files/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ if [ "$_IP" ]; then
fi

service systemd-udevd restart
service supervisor restart

#Suppress Kernel Messages
dmesg --console-off
Expand Down

0 comments on commit 3450823

Please sign in to comment.