21 Commits

Author SHA1 Message Date
Riccardo Pittau
5e72595a73 Use tinycore 11 to build tinyipa
We should take advantage of the latest tinycore image version to
build ipa ramdisks, just to be able to use kernel from series 5.x

Depends-On: https://review.opendev.org/739448
Depends-On: https://review.opendev.org/756353

Story: 2007855
Task: 40158

Change-Id: I852aeac090bb38dbb20f8484e191ba76b42c9dd9
2020-10-08 08:28:03 +00:00
Julia Kreger
c683807068 Add dosfsutils for EFI to tinyipa
In trying to do a UEFI partition image, we need dosfstools
and our tinycore image doesn't have it present.

Ultimately this raises an exception along the lines of:

 prepare_image, error: Failed to create a file system.
 File system vfat is not supported.:
 ironic_lib.exception.FileSystemNotSupported:
 Failed to create a file system. File system vfat is not
 supported.

Which is rooted in the mkfs.vfat binary not being
present.

 mkfs: failed to execute mkfs.vfat: No such file or directory

I confirmed the tinycore-master image does indeed lack
the dosfstools package. As such adding it to the final
requirements list should enable tinycore to support UEFI
partition image deployments.

Change-Id: I7df395bd2dcc5613a54a21d4aaa14b1e5862e7c3
2020-09-10 14:27:17 -07:00
Zuul
dbfbe1f451 Merge "Add ntpdate/ntpclient/chrony" 2020-02-18 16:40:20 +00:00
Julia Kreger
789ebe1e95 Add ntpdate/ntpclient/chrony
Adds ntpdate to the binary package list for the diskimage-builder
element, and added ntpclient to the tinycore package list and added
a small shim to wrap ntpclient as ntpdate is not a native tinycore
package.

For larger ramdisks, we attempt to use chrony, which superceeds the ntp
package as a combined time server and client.

Change-Id: If99f2df31af8e4d41ad7813d25f0d779abc23f7a
Needed-By: https://review.opendev.org/#/c/707911/
2020-02-17 13:11:04 -08:00
Riccardo Pittau
531167c2d5 Upgrade to tinycore 10.x
Upgrading tinycore from version 9.x to 10.x
This change was merged [1] and reverted [2], let's give it another
try and eventually discuss about possible issues.

[1] https://review.opendev.org/688411
[2] https://review.opendev.org/698098

Change-Id: I831b414461f77c65e34b0f357763e38e74e65e29
2020-02-10 14:55:56 +01:00
Julia Kreger
ae327bb1ca Add extra filesystem support
Tinycore needs xfs support in order to be used in certian
low memory testing situtions with images that prefer
to use XFS as the filesystem.

Change-Id: Ief9c04a57c3e3249ddf081b249aa583169065582
2020-02-08 13:02:26 -08:00
Iury Gregory Melo Ferreira
15ec23f7e2 Add efivar
The efivar package is required when doing uefi boot.

Change-Id: Id736787bb3d6f971a9f0f26732af1c2d66151f0d
2020-01-07 15:46:33 +01:00
Zuul
73fbda5477 Merge "Add efibootmgr" 2019-12-11 11:57:50 +00:00
Zuul
61985939fa Merge "Revert "Update tinycore from 9.x to 10.x"" 2019-12-10 01:01:28 +00:00
Julia Kreger
d6aeb03b47 Revert "Update tinycore from 9.x to 10.x"
This reverts commit e8c8a9f76b81081cd366ac872a400fc8f934ef0c.

Change-Id: I9bb95f611460b0a1e657a79a1f4d02e0c1d4a291
2019-12-09 21:54:04 +00:00
Iury Gregory Melo Ferreira
e564be1905 Add efibootmgr
We will be using efibootmgr on ipa so let's add
to the ipa-builder so the ramdisk will have it.

Change-Id: Ic3b3f65715719b31f7e94d14504be9705ab4ba0e
2019-12-09 16:08:31 +01:00
Zuul
a34dfda613 Merge "Update tinycore from 9.x to 10.x" 2019-12-02 21:59:59 +00:00
Pierre Riteau
fc070c691e Fix IPA execution issues due to lack of entropy
While running TinyIPA stable/stein images in KVM virtual machines with
Tenks, we noticed that IPA would start but not execute further, which
appeared to be caused by a lack of entropy.

This patch installs haveged, a simple entropy daemon [1], into the
tinyipa ramdisk and starts it on boot, which resolves the issue.

While this problem was reproduced reliably with stable/stein and not
seen with stable/train or stable/rocky images, we will start running
haveged in all versions, for consistency. It adds less than 20 KiB to
the ramdisk.

[1] http://www.issihosts.com/haveged/

Change-Id: I7d47b7828733cc03c1ed6c370c451465a6d492b6
Story: 2006911
Task: 37554
2019-11-21 15:35:35 +01:00
Julia Kreger
e8c8a9f76b Update tinycore from 9.x to 10.x
Change-Id: I14a44700df8c7acc524bd4c410d60b56cc79f67e
Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
2019-11-19 12:53:44 +00:00
Zuul
765207a586 Merge "Update tinycore from 8.x to 9.x" 2019-09-20 17:03:58 +00:00
Zuul
ca0652c1c5 Merge "Add file to tinybuild's IPA image" 2019-09-18 23:53:58 +00:00
Julia Kreger
83edd836cb Add file to tinybuild's IPA image
We need the ``file`` command to examine the magic numbers in the
metadata of block devices to determine if a bootloader is persent.

Change-Id: I5e73113148e721c6644bbfd626c563e72468d030
2019-09-03 10:28:07 +00:00
Julia Kreger
db1fecdee0 Update tinycore from 8.x to 9.x
Change-Id: Ic61ef915d86bad39d43e80866913d0d1add0632b
2019-08-25 18:33:18 +02:00
Dmitry Tantsur
e72cf8b727 tinyipa: update qemu and tgt dependencies
This is needed in preparation for migration to TinyCore 10.x.

Change-Id: I060fb0ad2c8c9924a5f4179a42be35aba549f66a
2019-08-25 15:27:42 +02:00
Kaifeng Wang
717a8628f0 Sync package requirements from IPA repo
There were two packages added to IPA repo but not
here, make them synced as we are switching to use
this repo. Package list is sorted.

Change-Id: I749dd845a886c14bbd679323de48edbd8c545c50
2019-06-17 11:42:06 +08:00
Nisha Brahmankar
5cdadc54ee Moving tinyipa to IPA-B from IPA
Task: 30071
Story: 2005114

Change-Id: Ic0694e120163efaa623b6bff9f58963460c1577e
2019-06-12 18:54:14 +05:30