2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-22 09:32:27 +00:00
Commit Graph

162 Commits

Author SHA1 Message Date
Daniel Hilst 3a5cbef630 fix(xcat-server): stop Ubuntu diskless images carrying the builder's identity
The Ubuntu netboot image inherited the build host's /etc/hostname --
genimage's chroot shares the build host's UTS namespace, so /etc/hostname
ended up as the MN's name and every diskless node booted as that name
instead of its own ("hostname poisoning"). xCAT keys on IP/MAC so
provisioning still succeeds, but the node's local identity (hostname,
prompt, syslog) is wrong and N nodes share one name. The image also
shipped no netplan, so systemd-networkd-wait-online failed. In
compute.postinstall, clear /etc/hostname so each node takes its name at
boot from DHCP (udhcpc option host-name) / xCAT, and drop in a DHCP
netplan (optional, dhcp-identifier mac) so systemd-networkd configures the
boot NIC. Ubuntu-only.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:20:27 -03:00
Daniel Hilst 03e1559989 fix(xcat-server): default the Ubuntu apt mirror for netboot and Subiquity
The Ubuntu live-server ISO copycds imports is not a complete apt pool, so
both Ubuntu install paths fail without an external mirror: the netboot
genimage's debootstrap from the ISO-only pkgdir cannot resolve packages,
and the Subiquity diskful install (Template.pm) fell back to the airgapped
file:///cdrom config. Default site.ubuntu_apt_mirror to
http://archive.ubuntu.com/ubuntu when unset (overridable for local/geo/
ports mirrors). In the Ubuntu genimage, when pkgdir has no http mirror,
build the debootstrap source and chroot sources.list from that mirror with
the codename derived from osvers and the release/-updates/-security pockets
(main + universe) -- the compute pkglist needs universe (busybox-static,
dracut*) and the security-updated openssh. Ubuntu-only; EL netboot
(netboot/rh) and copycds/packimage are untouched.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:20:27 -03:00
Vinícius Ferrão 7b20bbd187 Guard Ubuntu live media package sources 2026-05-05 21:40:04 -03:00
Vinícius Ferrão 023beff053 Add Ubuntu 26.04 provisioning support 2026-05-01 11:13:45 -03:00
Vinícius Ferrão 1babd7b0e4 fix: improve Ubuntu LTS provisioning support 2026-04-29 18:19:12 -03:00
Markus Hilger 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Mark Gurevich 3b0442797c Support for xCAT installation on Ubuntu20 2022-09-21 10:02:27 -04:00
Markus Hilger be8297e4c9 Fix warnings of newer dracut versions
dracut: WARNING: <key>+=" <values> ": <values> should have surrounding white spaces!
dracut: WARNING: This will lead to unwanted side effects! Please fix the configuration file.

dracut commit: https://github.com/dracutdevs/dracut/commit/dfe2247a43d6a216d9af533825c9a103e3b056cd
2022-05-18 11:54:57 +02:00
Mark Gurevich c0f1c51ba6 Add diskless package lists for Ubuntu20 2022-04-07 16:33:09 -04:00
Mark Gurevich 1c88d50163 Improve genimage message 2020-06-01 14:29:12 -04:00
Mark Gurevich 7fab544d98 Ubuntu support for squashfs 2020-05-07 14:35:26 -04:00
cxhong e542c012c9 Remove ldd messages from ubuntu genimage command 2020-05-06 15:24:36 -04:00
Mark Gurevich a9e059d90f Do not use modinfo to test module availability 2020-05-04 16:23:42 -04:00
Mark Gurevich a002157251 Use overlay mount type for squashfs diskless images 2020-04-22 16:03:29 -04:00
Gᴏɴɢ Jie ae3bf7b314 Revert "For Ubuntu 18.04.2, change back to use the original linux-image-generic kernel" 2019-05-23 15:41:52 +08:00
GONG Jie 7f2d26d0e0 For Ubuntu 18.04.2, change back to use the original linux-image-generic kernel 2019-05-23 15:07:46 +08:00
yangsong 2c522a10db Merge pull request #6315 from neo954/ubuntu16.04.5
Revised package list file for Ubuntu16.04.5
2019-05-22 17:23:16 +08:00
GONG Jie 2e9022208a Diskless package list file for Ubuntu 16.04.5 2019-05-14 17:40:23 +08:00
GONG Jie 2273f7f145 Remove compute.ubuntu16.04.pkglist 2019-05-14 17:40:03 +08:00
GONG Jie bedca476a0 Add kernel module tg3 to diskless initrd image for ppc64el 2019-05-14 13:47:35 +08:00
GONG Jie ad1df10c74 Add pkglist files for Ubuntu 18.04.2 2019-05-07 13:53:18 +08:00
Mark Gurevich ac6f514ca9 Undo verify packaging command PR 6216 2019-04-12 13:24:49 -04:00
Mark Gurevich 54a55a4d0d Verify debootstrap command can be executed 2019-04-10 14:26:33 -04:00
yangsong a60c79e0c1 support site.httpport in ubuntu diskless (#5865) 2018-12-04 11:14:19 +08:00
Yuan Bai b117be552a refine tag prefix xcat.deployment for sles/ubuntu provision (#5831)
* refine tag prefix xcat.deployment for sles/ubuntu provision
2018-11-23 10:00:02 +08:00
Yuan Bai cfdce8a7a5 fix 5733 genimage in ubuntu16.04.5 failure (#5781) 2018-11-09 14:12:56 +08:00
Gᴏɴɢ Jie f7a3372a49 Still need the busybox cpio workaround in Ubuntu 18.04.1 (#5562) 2018-08-28 14:23:29 +08:00
GONG Jie 8caa0f2290 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/genimage 2017-12-31 23:59:59 +00:00
GONG Jie 5f07d0f7f6 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/dracut/xcatroot 2017-12-31 23:59:59 +00:00
GONG Jie 2a3a62077c Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/dracut/install.netboot 2017-12-31 23:59:59 +00:00
GONG Jie 2364a70df5 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu16.04.pkglist 2017-12-31 23:59:59 +00:00
GONG Jie 0c2737a28f Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu14.04.pkglist 2017-12-31 23:59:59 +00:00
GONG Jie fc0540a620 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu12.04.2.pkglist 2017-12-31 23:59:59 +00:00
GONG Jie e8f125d5d6 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.ubuntu12.04.1.pkglist 2017-12-31 23:59:59 +00:00
GONG Jie 6424996b80 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.postinstall 2017-12-31 23:59:59 +00:00
GONG Jie 57bba34896 Remove trailing spaces in file xCAT-server/share/xcat/netboot/ubuntu/compute.pkglist 2017-12-31 23:59:59 +00:00
Gᴏɴɢ Jie 29b5e07264 Add chrony to default Ubuntu 18.04 package lists (#5435)
* Add chrony to default Ubuntu 18.04 diskful package lists

* Add chrony to default Ubuntu 18.04 diskless package lists
2018-07-26 15:06:47 +08:00
Gᴏɴɢ Jie b86e2082bf Workaround for Ubuntu 18.04 busybox bug (#5421)
* Workaround for Ubuntu 18.04 busybox bug https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1753572

* Add cpio to the Ubuntu 18.04 diskless pkglist
2018-07-23 17:00:37 +08:00
Gᴏɴɢ Jie d3f1bbbe26 Add virtio_net to default network driver list for Ubuntu on ppc64el (#5396) 2018-07-13 14:11:13 +08:00
Gᴏɴɢ Jie 2559d28cb4 Revise Ubuntu 18.04 package list, add ifupdown, remove ntp and ntpdate (#5324) 2018-06-26 13:06:52 +08:00
Gᴏɴɢ Jie f718db6b00 Add pkglist files for Ubuntu 18.04 (#5307) 2018-06-21 10:24:37 +08:00
yangsbj dad1f72fdc fix issue Non-root user can not run ping on ubuntu 14.4.4 diskless #5227 2018-05-21 00:51:32 -04:00
GONG Jie 38d0f9ba25 Add symbolic for ubuntu 16.04.2 support (#3576) 2017-08-01 00:01:34 -05:00
immarvin 73b6439f05 fix issue #2898 on ububuntu 14.4+ x86_64 diskless provision , failed to resolve hostname due to lack of libnss_dns.so.2 2017-04-21 01:37:00 -04:00
Jarrod Johnson 705556a368 Fix spelling mistake on 'dependency' 2017-03-15 10:51:38 -04:00
Casandra Qiu 71ca913325 Running dist-upgrade for not upgraded packages for diskless Ubuntu
images
2017-01-09 11:14:50 -05:00
hu-weihua a6c910467e Refine hack_uname() in mlnxofed_ib_install.v2 2016-10-18 23:15:19 -04:00
Weihua Hu d46d34f8b8 Merge pull request #1724 from mattaezell/xdie_rootimgdir
Protect umount_chroot from running with rootimage_dir undefined
2016-09-28 14:24:24 +08:00
immarvin b6d14179ca add IMG_NAME into the environment variables to postinstall scripts 2016-09-23 14:32:54 +08:00
immarvin 66c99aad31 fix issue netboot postscripts have no knowledge about the osimage it is installing. #1857; export osimage attributes to postinstall scripts as environment variables 2016-09-22 05:05:00 -04:00