Skip to content

Instantly share code, notes, and snippets.

@bahamas10
Created April 6, 2020 17:27
Show Gist options
  • Select an option

  • Save bahamas10/6060e34a872bad113029f57ffa504758 to your computer and use it in GitHub Desktop.

Select an option

Save bahamas10/6060e34a872bad113029f57ffa504758 to your computer and use it in GitHub Desktop.
void linux on illumos lx
root - build sunos ~/.../usr/src/lib/brand/lx/zone (git:master) # pwd
/home/dave/joyent/illumos-joyent/usr/src/lib/brand/lx/zone
root - build sunos ~/.../usr/src/lib/brand/lx/zone (git:master) # cat lx_boot_zone_void.ksh
#!/bin/ksh -p
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2019 Joyent, Inc.
#
# Hand control back to lx_boot
diff --git a/usr/src/lib/brand/lx/zone/lx_boot.ksh b/usr/src/lib/brand/lx/zone/lx_boot.ksh
index da93e03..d6200e5 100644
--- a/usr/src/lib/brand/lx/zone/lx_boot.ksh
+++ b/usr/src/lib/brand/lx/zone/lx_boot.ksh
@@ -21,8 +21,8 @@
#
#
# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright 2015, Joyent, Inc.
# Copyright 2017 ASS-Einrichtungssysteme GmbH, Inc.
+# Copyright 2019 Joyent, Inc.
#
# lx boot script.
#
@@ -83,6 +83,8 @@ elif [[ -f $ZONEROOT/etc/alpine-release ]]; then
distro="busybox"
elif [[ -f $ZONEROOT/etc/SuSE-release ]]; then
distro="suse"
+elif [[ -f $ZONEROOT/etc/void-release ]]; then
+ distro="void"
fi
[[ -z $distro ]] && fatal "Unsupported distribution!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment