debian: Add Debian packaging for platform-kickstarts
Add Debian packaging infrastructure for platform-kickstarts Test Plan: PASS: Verify CentOS package build and iso create PASS: Verify Debian package build and iso create PASS: Verify PXE Boot install with kickstart (single disk) PASS: Verify kickstart xxxPLATFORM_RELEASExxx variable replacement PASS: Verify platform backup partition creation and persistence PASS: Verify single disk vg and lv setup ; log and scratch PASS: Verify install traits=controller,worker boot paramter handling PASS: Verify disk boot kernel parameter cmdline update (aio) PASS: Verify platform.conf setup PASS: Verify INSTALL_UUID setup PASS: Verify boot interface setup, dhcp and login support PASS: Verify install script and logs preserved over an install PASS: Verify instdev with by-path notation PASS: Verify ostree repo pull to feed dir Limitations: - Single Disk install - Currently investigating lv leaking to other disks - Do not specify lowlatency trait without low latency kernel - USB install does not use this kickstart yet ; its not in the iso Story: 2009101 Task: 44658 Depends-On: https://review.opendev.org/c/starlingx/tools/+/834375 Co-authored-by: Eric MacDonald <Eric.Macdonald@windriver.com> Co-authored-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com> Signed-off-by: emacdona <eric.macdonald@windriver.com> Change-Id: I50bb797bedd9fb7f7ab1bbdae6e6f22b1023f1fb
This commit is contained in:
parent
cddb4fc6dd
commit
dd727fe1e7
@ -1,4 +1,5 @@
|
||||
installer/pxe-network-installer
|
||||
kickstart
|
||||
mtce
|
||||
mtce-common
|
||||
mtce-compute
|
||||
|
5
kickstart/debian/deb_folder/changelog
Normal file
5
kickstart/debian/deb_folder/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
platform-kickstarts (2.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Eric MacDonald <eric.macdonald@windriver.com> Wed, 02 Mar 2022 21:26:55 +0000
|
15
kickstart/debian/deb_folder/control
Normal file
15
kickstart/debian/deb_folder/control
Normal file
@ -0,0 +1,15 @@
|
||||
Source: platform-kickstarts
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Homepage: https://www.starlingx.io
|
||||
Standards-Version: 4.5.1
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
build-info-dev
|
||||
|
||||
Package: platform-kickstarts
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
Description: Platform kickstarts
|
||||
Platform kickstart files used to configure nodes
|
||||
based on install arguement personality traits.
|
43
kickstart/debian/deb_folder/copyright
Normal file
43
kickstart/debian/deb_folder/copyright
Normal file
@ -0,0 +1,43 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Upstream-Name: platform-kickstarts
|
||||
Source: https://opendev.org/starlingx/metal
|
||||
|
||||
Files: *
|
||||
Copyright: (c) 2013-2022 Wind River Systems, Inc
|
||||
(c) Others (See individual files for more details)
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
||||
|
||||
# If you want to use GPL v2 or later for the /debian/* files use
|
||||
# the following clauses, or change it to suit. Delete these two lines
|
||||
Files: debian/*
|
||||
Copyright: 2021 Wind River Systems, Inc
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
1
kickstart/debian/deb_folder/platform-kickstarts.install
Normal file
1
kickstart/debian/deb_folder/platform-kickstarts.install
Normal file
@ -0,0 +1 @@
|
||||
var/www/pages/feed/*
|
17
kickstart/debian/deb_folder/rules
Normal file
17
kickstart/debian/deb_folder/rules
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# export DH_VERBOSE = 1
|
||||
export ROOT=$(CURDIR)/debian/tmp
|
||||
export platform_release="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
sed -i s/xxxPLATFORM_RELEASExxx/$(platform_release)/g kickstart.cfg
|
||||
dh_auto_configure
|
||||
|
||||
override_dh_install:
|
||||
install -d -m 755 $(ROOT)/var/www/pages/feed/rel-${platform_release}
|
||||
install -p -D -m 700 kickstart.cfg $(ROOT)/var/www/pages/feed/rel-${platform_release}
|
||||
dh_install
|
7
kickstart/debian/meta_data.yaml
Normal file
7
kickstart/debian/meta_data.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
debname: platform-kickstarts
|
||||
debver: 2.0-1
|
||||
src_path: files
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
1990
kickstart/files/kickstart.cfg
Normal file
1990
kickstart/files/kickstart.cfg
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user