diff --git a/docs/koji/bootstrapping.md b/docs/koji/bootstrapping.md index 491d01d018ce7d80ce231fa5a509b2bb5483168c..a7f5d42f577f7d17d2fe349547ee96e6817e0461 100644 --- a/docs/koji/bootstrapping.md +++ b/docs/koji/bootstrapping.md @@ -486,12 +486,63 @@ Before you can actually build the cloud image, you should prepare the [imageci](https://gitlab.cern.ch/linuxsupport/testing/image-ci) to test it. You'll have to do [something like this](https://gitlab.cern.ch/linuxsupport/testing/image-ci/-/commit/69de3bf3d46d729f709a34ffff76609511e5d086). -## Build the image +### Build the image Now that you have the testing infrastructure set up and all the necessary RPMs built, you can prepare a kickstart template for your new distro. You'll need to do [something like this](https://gitlab.cern.ch/linuxsupport/koji-image-build/-/commit/622b3632d9f1e6e89705e77694246cbfc5b2c068). +## Upload the AIMS images + +You could have done this earlier, but now's as good a time as any. You have to +upload an `vmlinuz` and `initrd.img` of your new distro to AIMS2: + +```bash +[aiadm10] ~ > wget http://linuxsoft.cern.ch/cern/centos/s8-testing/BaseOS/x86_64/os/images/pxeboot/{vmlinuz,initrd.img} +--2021-02-24 18:49:15-- http://linuxsoft.cern.ch/cern/centos/s8-testing/BaseOS/x86_64/os/images/pxeboot/vmlinuz +Resolving linuxsoft.cern.ch (linuxsoft.cern.ch)... 2001:1458:d00:2e::100:3e3, 2001:1458:d00:3a::100:1ec, 2001:1458:d00:13::451, ... +Connecting to linuxsoft.cern.ch (linuxsoft.cern.ch)|2001:1458:d00:2e::100:3e3|:80... connected. +HTTP request sent, awaiting response... 200 OK +Length: 9936008 (9.5M) +Saving to: ‘vmlinuz’ + +vmlinuz 100%[================================================================>] 9.48M 32.3MB/s in 0.3s + +2021-02-24 18:49:16 (32.3 MB/s) - ‘vmlinuz’ saved [9936008/9936008] + +--2021-02-24 18:49:16-- http://linuxsoft.cern.ch/cern/centos/s8-testing/BaseOS/x86_64/os/images/pxeboot/initrd.img +Reusing existing connection to [linuxsoft.cern.ch]:80. +HTTP request sent, awaiting response... 200 OK +Length: 74289512 (71M) [application/octet-stream] +Saving to: ‘initrd.img’ + +initrd.img 100%[================================================================>] 70.85M 101MB/s in 0.7s + +2021-02-24 18:49:21 (101 MB/s) - ‘initrd.img’ saved [74289512/74289512] + +FINISHED --2021-02-24 18:49:21-- +Total wall clock time: 6.4s +Downloaded: 2 files, 80M in 1.0s (80.5 MB/s) +[aiadm10] ~ > aims2 addimg --name CS8_X86_64_TEST --arch x86_64 --vmlinuz vmlinuz --initrd initrd.img --description "CENTOS STREAM 8 (20210224) X86_64 TEST" --uefi +Uploading to server: + vmlinuz + file: vmlinuz + md5: cc5678f48665e361f2bba7df10530716 + size: 9936008 + initrd + file: initrd.img + md5: 35c0aaa6f80c34a95a24d86f56195367 + size: 74289512 +(this will take 20-30 seconds for typical linux vmlinuz/initrd sizes) +100.0% wait ... +vmlinuz upload completed +100.0% +initrd upload completed +Image CS8_X86_64_TEST uploaded to aims. +``` + +For more details, consult the [AIMS2 documentation](/aims2/addinganewimage/). + ## Start getting Puppet ready You'll need to create a [new tag](https://gitlab.cern.ch/linuxsupport/lxdist-build/-/commit/128424d237e8121864d9e1cf826ed5911a43d4a9) @@ -504,5 +555,3 @@ There will be other basic Koji tags that they'll probably need at this point, su as `collectd*`, `monit*` and `hw*`, so now is a good time to create them. ## Build OpenAFS Kernel Modules - -## Upload the AIMS images