Fixed
Created: May 2, 2019
Updated: Jul 14, 2019
Resolved Date: Jul 14, 2019
Found In Version: 10.18.44.5
Fix Version: 10.18.44.9
Severity: Severe
Applicable for: Wind River Linux LTS 18
Component/s: Target Installer
Even if we set :
SYSTEMD_DEFAULT_TARGET ?= "graphical.target"
in the build project, this seems to be overwritten by the installer build and set back to the default value multi-user.target.
So it is impossible to boot the installed image on the graphical desktop from the first boot.
At 1st boot, we need to issue the command "systemctl set-default graphical target" again so that it boots on the graphical desktop on the next (re-)boots.
What we are interested in is that from the first power on /reboot after the installation, the system should boot to the graphical mode.
setup.sh --machines=intel-x86-64 --distros=wrlinux-std-sato --templates feature/xfce,feature/installer-support --layers meta-anaconda --dl-layers
source ./environment-setup-x86_64-wrlinuxsdk-linux
source ./oe-init-build-env build-target
bitbake wrlinux-image-glibc-std-sato
cd ..
source ./oe-init-build-env build-installer
echo "DISTRO = 'wrlinux-installer'" >> conf/local.conf
echo "WRTEMPLATE = 'feature/installer-support'" >> conf/local.conf
echo "INSTALLER_TARGET_BUILD = '<proj_dir>/build/tmp-glibc/deploy/images/intel-x86-64/wrlinux-image-glibc-std-sato-intel-x86-64.ext4'" >> conf/local.conf
bitbake wrlinux-image-installer
cd tmp-glibc/deploy/images/intel-x86-64/
sudo dd if=wrlinux-image-installer-intel-x86-64.iso of=/dev/sdXX
Eventually you can just test your new image with qemu; hereafter the commands to run for that :
qemu-img create disk.img 10G
qemu-system-x86_64 -cdrom wrlinux-image-installer-intel-x86-64.iso -m 4G -hdb disk.img -enable-kvm -net user,hostname="qemu0",hostfwd=tcp::9966-:22 -net nic,macaddr=52:54:00:12:34:56,model=e1000 -cpu host
– default installation –