A fstab replacement method change to build container guest
[AGL/meta-agl-demo.git] / recipes-core / psplash / psplash-portrait-config_agl-container-guest-demo.inc
1 do_install[depends] = "psplash:do_populate_sysroot"
2
3 do_install() {
4     # Install override
5     psplash_service="${STAGING_DIR_TARGET}/${systemd_system_unitdir}/psplash-start.service"
6     if [ ! -f "$psplash_service" ]; then
7         echo "ERROR: psplash service unit file not found: $psplash_service" >&2
8         exit 1
9     fi
10     install -d ${D}${systemd_system_unitdir}/psplash-start.service.d
11     psplash_portrait_conf="${D}${systemd_system_unitdir}/psplash-start.service.d/psplash-portrait.conf"
12     echo "[Service]" > "$psplash_portrait_conf"
13     echo "ExecStart=" >> "$psplash_portrait_conf"
14     sed -ne 's!^\(ExecStart=/usr/bin/psplash.*\)!\1 --angle 90!p' "$psplash_service" >> "$psplash_portrait_conf"
15 }