forked from brl/citadel
Bruce Leidl
64d91cb68c
Updated Recipes * colord 1.4.5 * dconf 0.40.0 * gdm 40.0 * geoclue 2.5.7 * geocode-glib 3.26.2 * gevix2_ 0.12.1 * gjs 1.68.0 * glib2 2.68.0 * gnome-autoar 0.3.1 * gnome-backgrounds 40.0 * gnome-control-center 40.0 * gnome-desktop 40.0 * gnome-disk-utility 40.1 * gnome-keyring 40.0 * gnome-screenshot 40.0 * gnome-session 40.1.1 * gnome-settings-daemon 40.0.1 * gnome-shell 40.0 * gnome-system-monitor 40.1 * gnome-terminal 3.40.1 * gsettings-desktop-schemas 40.0 * ibus 1.5.23 * iwd 1.13 * kernel 5.12.1 * keyutils 1.6.1 * libgee 0.20.4 * libgit2 1.1.0 * libgweather 40.0 * libhandy 1.2.0 (poky) * libseccomp 2.5.1 * libssh2 1.9.0 (poky) * lvm2 2.03.11 * meson 0.57.1 (poky) * mutter 40.0 * nano 5.6 * NetworkManager 1.30.2 * network-manager-applet 1.18.0 * nspr 4.29 * pango 1.48.2 (poky) * plymouth 0.9.5+git * udisks 2.9.2 * upower 0.99.11 * vte 0.64.0 * yelp-tools 3.32.2 * yelp-xsl 3.36.0
68 lines
2.1 KiB
BlitzBasic
68 lines
2.1 KiB
BlitzBasic
|
|
SUMMARY = "Subgraph OS Citadel image builder"
|
|
LICENSE = "MIT"
|
|
|
|
SYSTEMD_DEFAULT_TARGET = "graphical.target"
|
|
|
|
ROOTFS_POSTPROCESS_COMMAND += "set_disable_root_password; symlink_lib64; setup_var; append_os_release;"
|
|
|
|
IMAGE_INSTALL += "\
|
|
packagegroup-citadel-base \
|
|
packagegroup-citadel \
|
|
"
|
|
|
|
CITADEL_IMAGE_VERSION = "${CITADEL_IMAGE_VERSION_rootfs}"
|
|
CITADEL_IMAGE_TYPE = "rootfs"
|
|
|
|
require citadel-image.inc
|
|
inherit citadel-image
|
|
|
|
set_blank_user_password() {
|
|
sed -i 's%^citadel::%citadel:!:%' ${IMAGE_ROOTFS}/etc/shadow
|
|
}
|
|
|
|
set_citadel_user_password() {
|
|
# crypt("citadel", "aa")
|
|
sed -i 's%^citadel:!:%citadel:aadg8rGtZzOY6:%' ${IMAGE_ROOTFS}/etc/shadow
|
|
}
|
|
|
|
set_disable_root_password() {
|
|
sed -i 's%^root::%root:!:%' ${IMAGE_ROOTFS}/etc/shadow
|
|
}
|
|
|
|
setup_var() {
|
|
install -m 0755 -d ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
|
|
rmdir ${IMAGE_ROOTFS}/var/log/journal
|
|
|
|
mv ${IMAGE_ROOTFS}/var/lib ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
mv ${IMAGE_ROOTFS}/var/log ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
mv ${IMAGE_ROOTFS}/var/cache ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
mv ${IMAGE_ROOTFS}/var/spool ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
mv ${IMAGE_ROOTFS}/var/run ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
mv ${IMAGE_ROOTFS}/var/lock ${IMAGE_ROOTFS}/usr/share/factory/var
|
|
|
|
ln -sf /opt/share/icons/Paper ${IMAGE_ROOTFS}/usr/share/icons/Paper
|
|
ln -sf /opt/share/icons/Adwaita ${IMAGE_ROOTFS}/usr/share/icons/Adwaita
|
|
ln -sf /opt/share/backgrounds/gnome ${IMAGE_ROOTFS}/usr/share/backgrounds/gnome
|
|
ln -sf /opt/share/gnome-background-properties ${IMAGE_ROOTFS}/usr/share/gnome-background-properties
|
|
|
|
# do_rootfs() will fail otherwise
|
|
ln -sf ../usr/share/factory/var/lib ${IMAGE_ROOTFS}/var/lib
|
|
}
|
|
|
|
append_os_release() {
|
|
echo "CITADEL_CHANNEL=\"${CITADEL_IMAGE_CHANNEL}\"" >> ${IMAGE_ROOTFS}/etc/os-release
|
|
echo "CITADEL_ROOTFS_VERSION=\"${CITADEL_IMAGE_VERSION_rootfs}\"" >> ${IMAGE_ROOTFS}/etc/os-release
|
|
}
|
|
|
|
do_rm_var_link() {
|
|
rm ${IMAGE_ROOTFS}/var/lib
|
|
}
|
|
|
|
addtask rm_var_link after do_rootfs before do_image_qa
|
|
|
|
symlink_lib64() {
|
|
ln -s /usr/lib ${IMAGE_ROOTFS}/lib64
|
|
}
|