Skip to content

Instantly share code, notes, and snippets.

default microkernel
label microkernel
kernel http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/ppc64le/netboot-3.8.0_rc3/vmlinuz-vanilla
initrd http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/ppc64le/netboot-3.8.0_rc3/initramfs-vanilla
append ssh_key=http://10.32.172.14/pubkey ip=-:-:-:-:-:eth2:dhcp modules=loop,squashfs,sd-mod,usb-storage alpine_repo=http://dl-cdn.alpinelinux.org/alpine/v3.8/main modloop=http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/ppc64le/netboot-3.8.0_rc3/modloop-vanilla
#!/bin/sh
# this is the init script version
VERSION=3.2.0-r2
SINGLEMODE=no
sysroot=/sysroot
splashfile=/.splash.ctrl
repofile=/tmp/repositories
/bin/busybox mkdir -p /usr/bin /usr/sbin /proc /sys /dev $sysroot \
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
# heavily modified by Jeremy Adams for simpler chroot on Apline ppc64le under GPL v2.
# chroot users' group
readonly Members=members
# chroot directory (should be owned and writable only by root)
readonly Chroot=/chroot
## Set up chroot environment
@jpadams
jpadams / busyroot.sh
Last active June 10, 2018 21:05 — forked from weakish/busyroot.sh
#sh script to set up a #chroot #busybox #ssh environment
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
# modified by Jeremy Adams for creating a chroot on Apline ppc64le under GPL v2.
### Set up a chroot busybox SSH environment
## requires
# wget -- to download pubkey and busybox
# sharutils -- to generate random password
* Obtaining IP via DHCP (eth2)...: i40e 0002:01:00.2 eth2: NIC Link is Up, 1000 Mbps Full Duplex, Flow Control: None
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for 10.0.200.178
udhcpc: lease of 10.0.200.178 obtained, lease time 3600
ok.
cat: can't open '/sys/class/dmi/id/product_uuid': No such file or directory
Connecting to 10.32.172.14 (10.32.172.14:80)
alpine.apkovl.tar.gz 100% |*******************************| 573k 0:00:00 ETA
* Loading user settings from /tmp/alpine.apkovl.tar.gz: 0% ok.
2018-06-06 12:18:20.238] [I] IP Address not present yet
[2018-06-06 12:18:20.240] [I] Waiting on IP address...
[2018-06-06 12:18:40.300] [I] Found property __api.request.callback.service.id = 728395b2-6071-4082-9cb3-e506edc0ae93
[2018-06-06 12:18:40.302] [I] Found property __api.request.id = aa6d2118-2eae-4bbf-a420-4ccde1a1b5d2
[2018-06-06 12:18:40.304] [I] Found property __Cafe.Request.BlueprintType = 1
[2018-06-06 12:18:40.305] [I] Found property __Cafe.Root.Request.Id = d4b39cd7-5ab3-4924-be34-3939b1c2de4b
[2018-06-06 12:18:40.307] [I] Found property __Clone_Type = CloneWorkflow
[2018-06-06 12:18:40.308] [I] Found property __clonefrom = centos-7-x86_64_TSE
[2018-06-06 12:18:40.309] [I] Found property __clonefromid = 105c70c9-5221-449d-b47d-62f65d09ef9d
[2018-06-06 12:18:40.311] [I] Found property __datacollected_ipaddress = 10.32.76.168
//inputs: string uuid, number timeout (minutes), number interval (polling interval in seconds)
//output: string actionResult (IP address)
//returns IP address or throws timeout exception
if (uuid == null) throw "vRA/vCAC VM IaaS UUID is required";
var remainingTime = timeout * 60; //convert timeout minutes to seconds
while(remainingTime > 0) {
try {
if (vm == undefined || vm == null) { //get VM once
--- pb-discover ---
lang: en_US.utf8
Detected platform type: powerpc
Running command:
exe: nvram
argv: 'nvram' '--print-config' '--partition' 'common'
configuration:
autoboot: enabled, 30 sec
boot device 0: network
IPMI boot device 0x00
*******************************************************************
ALPINE STOCK
*******************************************************************
http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/ppc64le/alpine-vanilla-3.7.0-ppc64le.iso
*******************************************************************
default microkernel
label microkernel
#!/bin/sh
apk add ruby git
gem install facter rake bundler --no-document
git clone https://github.com/puppetlabs/razor-alpine-ppc64le-mk.git
cd razor-alpine-ppc64le-mk/
bundle install
bundle exec rake build
echo 'to install: gem install --local '$(pwd)'/pkg/razor-mk-agent-*.gem --no-document'