forked from ungleich-public/cdist
add v2 ideas
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
bb9d889d15
commit
4809662026
2 changed files with 58 additions and 0 deletions
29
hacking/v2-initramfs-from-os/add_kernel_isolinux.sh
Executable file
29
hacking/v2-initramfs-from-os/add_kernel_isolinux.sh
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# FIXME: Write cdist type / explorer that finds
|
||||||
|
# package for a file, distro independent
|
||||||
|
|
||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "$0 dir-out"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir=$1; shift
|
||||||
|
boot=$dir/boot
|
||||||
|
|
||||||
|
mkdir -p "$boot"
|
||||||
|
cp /boot/vmlinuz-linux \
|
||||||
|
/boot/initramfs-linux-fallback.img \
|
||||||
|
/usr/lib/syslinux/bios/isolinux.bin \
|
||||||
|
"$boot"
|
||||||
|
|
||||||
|
cp /usr/lib/syslinux/bios/ldlinux.c32 \
|
||||||
|
"$dir"
|
||||||
|
|
||||||
|
cat > "$dir/isolinux.cfg" << eof
|
||||||
|
default preos
|
||||||
|
label preos
|
||||||
|
title cdist PreOS
|
||||||
|
linux /boot/vmlinuz-linux
|
||||||
|
initrd /boot/initramfs-linux-fallback.img
|
||||||
|
eof
|
29
hacking/v2-initramfs-from-os/packages_arch
Normal file
29
hacking/v2-initramfs-from-os/packages_arch
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
base syslinux
|
||||||
|
|
||||||
|
[10:06] wurzel:hacking% sudo !!
|
||||||
|
sudo pacman -S base
|
||||||
|
[sudo] password for nico:
|
||||||
|
:: linux is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] y
|
||||||
|
:: There are 50 members in group base:
|
||||||
|
:: Repository core
|
||||||
|
1) bash 2) bzip2 3) coreutils 4) cryptsetup 5) device-mapper 6) dhcpcd 7) diffutils 8) e2fsprogs 9) file
|
||||||
|
10) filesystem 11) findutils 12) gawk 13) gcc-libs 14) gettext 15) glibc 16) grep 17) gzip 18) inetutils
|
||||||
|
19) iproute2 20) iputils 21) jfsutils 22) less 23) licenses 24) linux 25) logrotate 26) lvm2 27) man-db
|
||||||
|
28) man-pages 29) mdadm 30) nano 31) netctl 32) pacman 33) pciutils 34) pcmciautils 35) perl 36) procps-ng
|
||||||
|
37) psmisc 38) reiserfsprogs 39) s-nail 40) sed 41) shadow 42) sysfsutils 43) systemd-sysvcompat 44) tar
|
||||||
|
45) texinfo 46) usbutils 47) util-linux 48) vi 49) which 50) xfsprogs
|
||||||
|
|
||||||
|
Enter a selection (default=all):
|
||||||
|
|
||||||
|
:18,23s/ [0-9]*)//g
|
||||||
|
|
||||||
|
bash bzip2 coreutils cryptsetup device-mapper dhcpcd diffutils e2fsprogs file
|
||||||
|
filesystem findutils gawk gcc-libs gettext glibc grep gzip inetutils
|
||||||
|
iproute2 iputils jfsutils less licenses linux logrotate lvm2 man-db
|
||||||
|
man-pages mdadm nano netctl pacman pciutils pcmciautils perl procps-ng
|
||||||
|
psmisc reiserfsprogs s-nail sed shadow sysfsutils systemd-sysvcompat tar
|
||||||
|
texinfo usbutils util-linux vi which xfsprogs
|
||||||
|
|
||||||
|
6J
|
||||||
|
|
||||||
|
bash bzip2 coreutils cryptsetup device-mapper dhcpcd diffutils e2fsprogs file filesystem findutils gawk gcc-libs gettext glibc grep gzip inetutils iproute2 iputils jfsutils less licenses linux logrotate lvm2 man-db man-pages mdadm nano netctl pacman pciutils pcmciautils perl procps-ng psmisc reiserfsprogs s-nail sed shadow sysfsutils systemd-sysvcompat tar texinfo usbutils util-linux vi which xfsprogs
|
Loading…
Reference in a new issue