forked from ungleich-public/cdist
rename & cleanup
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
50bca7891f
commit
bb9d889d15
7 changed files with 22 additions and 6 deletions
4
hacking/v2-initramfs-from-os/bin_to_pkg.sh
Executable file
4
hacking/v2-initramfs-from-os/bin_to_pkg.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
abspath=$(command -v "$1")
|
||||
pacman -Qoq "$abspath"
|
||||
23
hacking/v2-initramfs-from-os/copy_files_for_iso.sh
Executable file
23
hacking/v2-initramfs-from-os/copy_files_for_iso.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
testdir=./iso-root-dir
|
||||
|
||||
# Create base
|
||||
rm -rf "$testdir"
|
||||
mkdir "$testdir"
|
||||
|
||||
# Copy binaries
|
||||
|
||||
# Copy kernel
|
||||
mkdir -p "$testdir/boot"
|
||||
cp /boot/vmlinuz-linux "$testdir/boot/kernel"
|
||||
cp /boot/initramfs-linux-fallback.img "$testdir/boot/initramfs"
|
||||
|
||||
# Create iso
|
||||
genisoimage -v -V "cdist preos v0.1" \
|
||||
-cache-inodes -J -l \
|
||||
-r -no-emul-boot \
|
||||
-boot-load-size 4 -b isolinux.bin -c boot.cat -o cdist-preos.iso iso
|
||||
|
||||
|
|
@ -8,12 +8,14 @@
|
|||
gettext glibc grep gzip inetutils iproute2 \
|
||||
iputils jfsutils less licenses linux logrotate lvm2 \
|
||||
man-db man-pages mdadm nano pacman pciutils \
|
||||
pcmciautils perl procps-ng psmisc reiserfsprogs \
|
||||
pcmciautils procps-ng psmisc reiserfsprogs \
|
||||
s-nail sed shadow sysfsutils systemd-sysvcompat tar \
|
||||
texinfo usbutils util-linux vi which xfsprogs \
|
||||
usbutils util-linux vi which xfsprogs \
|
||||
; do
|
||||
pacman -Qlq $pkg | grep -v \
|
||||
-e /usr/share/man/ \
|
||||
-e /usr/share/doc/
|
||||
-e /usr/share/doc/ \
|
||||
-e /usr/include
|
||||
|
||||
done
|
||||
) | sort | uniq
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue