From 93c80c9f4d7336fe8f79420ca7bd8cc117933557 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Sat, 15 Oct 2016 19:04:14 +0200 Subject: [PATCH] Remove outdated __cdist_preos. --- cdist/conf/type/__cdist_preos/man.rst | 48 ----------- cdist/conf/type/__cdist_preos/manifest | 79 ------------------- .../__cdist_preos/parameter/default/branch | 1 - .../__cdist_preos/parameter/default/source | 1 - .../__cdist_preos/parameter/default/username | 1 - .../type/__cdist_preos/parameter/optional | 4 - 6 files changed, 134 deletions(-) delete mode 100644 cdist/conf/type/__cdist_preos/man.rst delete mode 100755 cdist/conf/type/__cdist_preos/manifest delete mode 100644 cdist/conf/type/__cdist_preos/parameter/default/branch delete mode 100644 cdist/conf/type/__cdist_preos/parameter/default/source delete mode 100644 cdist/conf/type/__cdist_preos/parameter/default/username delete mode 100644 cdist/conf/type/__cdist_preos/parameter/optional diff --git a/cdist/conf/type/__cdist_preos/man.rst b/cdist/conf/type/__cdist_preos/man.rst deleted file mode 100644 index 8b7d22d6..00000000 --- a/cdist/conf/type/__cdist_preos/man.rst +++ /dev/null @@ -1,48 +0,0 @@ -cdist-type__cdist_preos(7) -========================== - -NAME ----- -cdist-type__cdist - Manage cdist installations - - -DESCRIPTION ------------ -This cdist type creates a directory containing an operating -suitable for installation using cdist. - - -REQUIRED PARAMETERS -------------------- -None - - -OPTIONAL PARAMETERS -------------------- -None - - -EXAMPLES --------- - -.. code-block:: sh - - __cdist_preos /tmp/random_name_for_packaging - - -SEE ALSO --------- -:strong:`cdist-type__cdist`\ (7) - - -AUTHORS -------- -Nico Schottelius - - -COPYING -------- -Copyright \(C) 2015 Nico Schottelius. You can redistribute it -and/or modify it under the terms of the GNU General Public License as -published by the Free Software Foundation, either version 3 of the -License, or (at your option) any later version. diff --git a/cdist/conf/type/__cdist_preos/manifest b/cdist/conf/type/__cdist_preos/manifest deleted file mode 100755 index 78166b38..00000000 --- a/cdist/conf/type/__cdist_preos/manifest +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -# -# 2015 Nico Schottelius (nico-cdist at schottelius.org) -# -# This file is part of cdist. -# -# cdist is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# cdist is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with cdist. If not, see . -# -# - -destination="/$__object_id" - -os=$(cat "$__global/explorer/os") - -case "$os" in - archlinux) - kernel=/boot/vmlinuz-linux - initramfs=/boot/initramfs-linux-fallback.img - required_pkg="cdrkit syslinux" - ;; - *) - echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2 - echo "Please contribute an implementation for it if you can." >&2 - exit 1 - ;; -esac - -# Our root -__directory "$destination" \ - --mode 0755 - -for rootdir in boot bin etc lib; do - require="__directory/$destination" __directory "$destination/$rootdir" \ - --mode 0755 -done - -require="__directory/$destination/etc" __cdistmarker \ - --destination "$destination/etc/cdist-configured" - -for pkg in $required_pkg; do - __package "$pkg" --state present -done - -# Create full dependency chain, because we don't know which file depends on which package -export CDIST_ORDER_DEPENDENCY=1 - -require="__directory/$destination/boot" __file "$destination/boot/linux" \ - --source "$kernel" --mode 0644 - -require="__directory/$destination/boot" __file "$destination/boot/initramfs" \ - --source "$initramfs" --mode 0644 - -require="__directory/$destination/boot" __file "$destination/boot/syslinux.cfg" \ - - - PROMPT 1 - TIMEOUT 50 - DEFAULT arch - - LABEL arch - LINUX ../vmlinuz-linux - APPEND root=/dev/sda2 rw - INITRD ../initramfs-linux.img - - LABEL archfallback - LINUX ../vmlinuz-linux - APPEND root=/dev/sda2 rw - INITRD ../initramfs-linux-fallback.img diff --git a/cdist/conf/type/__cdist_preos/parameter/default/branch b/cdist/conf/type/__cdist_preos/parameter/default/branch deleted file mode 100644 index 1f7391f9..00000000 --- a/cdist/conf/type/__cdist_preos/parameter/default/branch +++ /dev/null @@ -1 +0,0 @@ -master diff --git a/cdist/conf/type/__cdist_preos/parameter/default/source b/cdist/conf/type/__cdist_preos/parameter/default/source deleted file mode 100644 index d669308f..00000000 --- a/cdist/conf/type/__cdist_preos/parameter/default/source +++ /dev/null @@ -1 +0,0 @@ -git://github.com/telmich/cdist.git diff --git a/cdist/conf/type/__cdist_preos/parameter/default/username b/cdist/conf/type/__cdist_preos/parameter/default/username deleted file mode 100644 index a585e141..00000000 --- a/cdist/conf/type/__cdist_preos/parameter/default/username +++ /dev/null @@ -1 +0,0 @@ -cdist diff --git a/cdist/conf/type/__cdist_preos/parameter/optional b/cdist/conf/type/__cdist_preos/parameter/optional deleted file mode 100644 index a5f14343..00000000 --- a/cdist/conf/type/__cdist_preos/parameter/optional +++ /dev/null @@ -1,4 +0,0 @@ -branch -source -username -shell