Commit Graph

152 Commits

Author SHA1 Message Date
Dongjin Kim
ab3e41ad2d gitignore: add file exentions of OS image files
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7a376f1ee8d41ea132c16a9dd725689da7d990df
2022-07-20 17:03:05 +09:00
Dongjin Kim
47d63921d8 ODROID-M1: prevent duplicated trusted resouce error
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I828abf2830815bb44f1139b882b76e31e3bfaace
2022-07-20 17:03:05 +09:00
Dongjin Kim
13ea129d26 function: rename 'distro/distro_version()' to 'osname/osversion()'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4f0a6cd2768ed5c600ca3901dfbc17b8e7e243ed
2022-06-01 01:42:41 +09:00
Dongjin Kim
32e4a0d943 fixup: remove package 'cloud-guest-utils' from Ubuntu 22.04 (Jammy)
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4e743a7c25cf0d05ebd7a8f541527a1ff58572a5
2022-05-31 19:17:25 +09:00
Dongjin Kim
53e44b74a6 distro: ubuntu 22.04: remove softlink and create independent build
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib9b50af226b98dd167009ae0cc5c8700fe7c63da
2022-05-31 19:17:25 +09:00
Dongjin Kim
045638a5db functions: cleanup: use 'do_copy_overlays()' instead of multiple long commands
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5749f9b8ed9c29c69928e04153b9c27d265f7b3f
2022-05-31 19:17:25 +09:00
Dongjin Kim
41cd09df44 functions: add support common build script for a specific distro
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib523ba8a532b3fb6b1522cac880cc01fbcca1254
2022-05-31 19:17:25 +09:00
steve.jeong
ba001b2468 ODROID-M1: custom: Add npu gnome-desktop image
Signed-off-by: steve.jeong <jkhpro1003@gmail.com>
Change-Id: I5940d5283e99c7cb4402991c0ac713c3f7b0b8f7
2022-05-31 19:17:25 +09:00
Dongjin Kim
718c7efa6c fixup: terminate when 'apt install' fails
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I78475fbeda2c1c33438285d95c9c46660aabf270
2022-05-27 18:08:27 +09:00
Dongjin Kim
65f38b8dfe ODROID-M1: fixup: add '[trusted=yes]' except Ubuntu 20.04 (Focal)
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4ffee2cf1119867f42c4b1640ad62ea9193618da
2022-05-24 21:28:25 +09:00
Dongjin Kim
17d0d9bd85 odroid-stamper: replace '/' to '-' in output image file
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I1d5566a48f043339ddecc7d5635f0c6822af104b
2022-05-24 21:28:25 +09:00
Dongjin Kim
642cd65df3 cloudimage: Not downloading a cloud image if exists
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia492ff91e2068745d433a35b139feabcbb356416
2022-05-06 02:27:25 +09:00
Dongjin Kim
a7f336cdba liveboot: oem: improve copying backup files in .list to support directory
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I60b97886618133ef8c8dac97f27e18ef4f4d65af
2022-05-06 02:27:25 +09:00
Dongjin Kim
80936afe3a firstboot: fix ssh service start issue at first booting
The SSH service fails at first boot due to missing host keys in /etc/ssh
even though new host keys are generated using 'ssh-keygen -A' since the
service keeps restart too quickly.

Therefore new approach is to disable the ssh service when building an
image, enable and start it after new host keys are generated in the
first boot script.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Idee71e55017e72ec693ddf5e829c27da6343f031
2022-05-06 02:27:25 +09:00
Dongjin Kim
ff0f20544f Add new feature to remove package in black list
New feature is to remove packages in black list when described.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic1d9d72cd200e3c1958a8f42a21fc8e4a13b2021
2022-05-06 02:27:25 +09:00
Dongjin Kim
7a36201f72 kde-desktop: add 'plasma-workspace-wayland' package
This package is missing when building Ubuntu 22.04.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I743f4d220866a25a498b3643ed83c6cb6c08f9e4
2022-04-25 19:08:10 +09:00
Dongjin Kim
b4e445feac ODROID-M1: fix repository access issue
E: Conflicting values set for option Trusted regarding source http://ppa.linuxfactory.or.kr/ jammy
E: The list of sources could not be read.
E: Conflicting values set for option Trusted regarding source http://ppa.linuxfactory.or.kr/ jammy
E: The list of sources could not be read.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie32c9bd343035d593119f7cc97188e3d021bce42
2022-04-25 14:45:31 +09:00
Dongjin Kim
77eb28f706 firstboot: fix wrong calculation to extand rootfs partition
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I636d8b515b83876450d78aa5fc2ffc4273460e85
2022-04-25 14:40:03 +09:00
Dongjin Kim
4d4dd02384 firstboot: fix sshd configuration and restart it on firstboot
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I06d06538eee533343e3a05535352e613f3944734
2022-04-25 08:41:03 +09:00
Dongjin Kim
1f4cb4bc7a fixups: add to run 'initramfs -u' when '/etc/fstab' is updated
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iae7a142847685cdaae3133febb691b4b0f14be6d
2022-04-25 08:41:03 +09:00
Dongjin Kim
5376e957b0 ODROID-M1: add new X11 based desktop build
Change-Id: I863541d1f75c53ca484874a7de67bdea97f6862c
2022-04-14 22:51:00 +09:00
Dongjin Kim
f962680bfb command: add new build flag '--customos'
Assuming the first argument will fail when multiple arguments are given
or other argument is at first place to build for a custom OS project.
Therefore use '--customos'...

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I14eaec23ed06790053522e33c1e5d7215c9566b0
2022-04-13 03:29:44 +09:00
Dongjin Kim
aee229b6a9 fixups: add default user to 'video' group by default
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ice2e77ef58747a14eaee62c08d407fd3456e8958
2022-04-13 03:28:54 +09:00
Dongjin Kim
4a5ace6581 Revert "firstboot: Restart SSH server at first boot"
This reverts commit b62b2b3306.
2022-04-13 03:20:55 +09:00
Dongjin Kim
cb97cd908a customos: fix to use custom os name instead of base os name
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib79c633a0eea6903f3abff3d5824c4beb538e3f3
2022-04-10 16:18:16 +09:00
Dongjin Kim
fd073455ab Fix warning regarding to change release info
For example,
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I53d9579353519f415216a933467c00e86b4553b3
2022-04-10 16:18:16 +09:00
Dongjin Kim
4f51aec913 Fix to use default package repository 'main'
When base OS image is from Ubunt/Debian, it does not have a package
manifest for 'ppa.linuxfactory.or.kr', there for ignore the previously
defined package manifest in the prebuilt OS image and use new one.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I3cdc93945b94df14314a9d6f8d2ee94cd8157ea4
2022-04-10 16:18:16 +09:00
Dongjin Kim
25c288da39 Add new OS build flavour 'Ubuntu 20.04 Jammy Jellyfish'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I167ffa7f6721e29a7e7eaffbf4e81e4c0bc86953
2022-04-10 16:18:16 +09:00
Dongjin Kim
76fd4dce66 command: add new build flag '--isoimage'
New build flag '--isoimage' will create a target OS image in ISO file
type and its OS will be forced to be built as Live boot system.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I77bab7efcbaa4791c085a163e44b59cc154f3283
2022-04-08 10:10:39 +09:00
Dongjin Kim
522eab98bb Add '-live' to Live booting OS image file name
examples:
	ubuntu-20.04-server-odroidn2-20220408-live.img
	ubuntu-20.04-gnome-desktop-odroidn2-20220408-live.iso

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I077ae5f1cb485583b9df694be1754fcc1d76058e
2022-04-08 10:08:53 +09:00
Dongjin Kim
578d77eb91 fixups: use 'systemd-machine-id-setup' instead of 'uuid-gen'
In chroot, there would be no 'uuid-gen' so failed.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iffd7aac6103c516769030ea3ce288522e2b73df1
2022-04-08 00:08:26 +09:00
Dongjin Kim
409e51cd0c ODROID-M1: move 'odroid-alsa' to board package file
Having 'odroid-alsa' in default pacakge file breaks building other
boards.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6866cab93a60b8576428fbd07c15c2d666a1a7af
2022-04-05 23:21:24 +09:00
Dongjin Kim
2771233e1c ODROID-M1: fixups: improve image build scripts
Package pool 'non-free' and 'contrib' are not required for ODROID-M1,
let Pulseaudio use HDMI audio card by default.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I44722df534fe900575f5b15c7e63c44775e4cf57
2022-04-05 22:23:56 +09:00
Dongjin Kim
0461ce77fa ODROID-M1: Add new board with RK3568
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ia9b0486e4ed56d162eedcd8780e708da59cbbaa2
2022-04-05 22:23:51 +09:00
Dongjin Kim
6e4658cbe4 gitignore: remove '*.md5sum' from list
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I60d118716c06caab91d817b1223f41ca0d990dea
2022-04-05 21:57:23 +09:00
Dongjin Kim
ef610833be fixups: packages: install package 'odroid-alsa' by default'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I6a75a72df10d2f8dc53897f7bfec09c5f4317379
2022-04-05 21:57:23 +09:00
Dongjin Kim
b62b2b3306 firstboot: Restart SSH server at first boot
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I42f2b5468be4d1cd3faefb752f0f32f33776150c
2022-04-05 21:57:23 +09:00
Dongjin Kim
0afbe54bc4 fixups: flash-kernel: fix to add 'root=...' to 'LINUX_KERNEL_CMDLINE'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I468dc20bae92853b7885e63a0e2552f28283f515
2022-04-05 21:57:18 +09:00
Dongjin Kim
7b3b039f18 fixups: flash-kernel: Add Plymouth settings to 'flash-kernel'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie3e10ceba6fc181c777437120ce0c8c2f40be04a
2022-03-15 20:58:32 +09:00
Dongjin Kim
17ddf02687 fixups: locale: Add default locale to '/etc/locale.gen' and generate it
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifa8eb34c1f54164b28ae9d5bde201c2b23929d66
2022-03-15 20:58:32 +09:00
Dongjin Kim
a0b20e986f command: add new build flags 'board/distro/flavour/username/password'
Adding more build flags will help to start OS build in the command line
and override given values in the configuration.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If3217a4d4edad7ef299d5726658b26bcccfc82f6
2022-03-15 20:58:32 +09:00
Dongjin Kim
ba68e40e71 Add new OS build flavour for Weston desktop
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iac22b27ed7e7e121fccdddaa47821aef32b55fc7
2022-03-15 20:58:32 +09:00
Dongjin Kim
89c87f0dfe Add run fixup scripts in 'distro/$DISTRO/$FLAVOUR/fixups'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I82487a74deba40508364d4929a4d7401e7aa1f6e
2022-03-15 20:58:32 +09:00
Dongjin Kim
6890de9751 firstboot: disable ondemand service to use kernel CPU governor
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I40068ea9dc07dcc91da88eb100c3ece2ad4d55a9
2022-03-15 20:58:32 +09:00
Dongjin Kim
ebf8380b13 Use build flavour only for hostname
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I0118667c662e377d808cb541e73fa153afc02bfd
2022-03-15 20:58:32 +09:00
Dongjin Kim
6fb11b5353 Error when the build target is not present under 'distro/'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I32d326dac31913ae83ac7b201f8c6bba3795b85d
2022-03-15 20:58:32 +09:00
Dongjin Kim
2a81214a53 Refactor directory structure referring build materials
New directory: distro/<DISTRO>/<FLAVOUR>
      DISTRO    bionic, focal, buster, bullseye, ...
      FLAVOUR   server, gnome-desktop, mate-desktop, ...

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I41482356e958fc5c7591bedee651376dc6e903aa
2022-03-15 20:58:32 +09:00
Dongjin Kim
60d20f79c8 Add Ubuntu 20.04 Gnome Desktop build flavour
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I30c0139e8d70ea472fac2b0f035f66897178653b
2022-03-15 20:58:28 +09:00
Dongjin Kim
78e7dde05f Revert "Add workaround to fix OS image build error"
This reverts commit 72e543e251.

Change-Id: I6a0fd77c1249dd05c235d752a585ff9e539181f6
2022-03-06 00:58:31 +09:00
Dongjin Kim
4d22c3d055 command: add new build flag '--internal'
New build flag '--internal' is to access internal package pool that
manages unpulbished packages in developing.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4cf4cae1fc6a4196ab2b3cc907671fd9554bb1e2
2022-03-05 20:31:48 +09:00