Browse Source

create directories required by busybox

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
4.0-pre-not-stable
Nico Schottelius 8 years ago
parent
commit
7d7aa60e19
  1. 0
      hacking/v2-initramfs-from-os/all.sh
  2. 7
      hacking/v3-busybox/create_initramfs.sh
  3. 0
      hacking/v3-busybox/create_iso.sh
  4. 0
      hacking/v3-busybox/qemu-test.sh

0
hacking/all.sh → hacking/v2-initramfs-from-os/all.sh

7
hacking/v3-busybox/generate.sh → hacking/v3-busybox/create_initramfs.sh

@ -5,14 +5,17 @@ set -ex
initramfs_dir=$(mktemp -d /tmp/cdist-preos.XXXXXXX)
# initramfs_dir=$1
for dir in bin sbin etc proc sys newroot; do
for dir in bin sbin etc proc sys newroot usr/bin usr/sbin; do
mkdir -p ${initramfs_dir}/$dir
done
touch ${initramfs_dir}/etc/mdev.conf
cp init "${initramfs_dir}/init"
cp $(which busybox) "${initramfs_dir}/bin"
ln -fs busybox "${initramfs_dir}/bin/sh"
for link in sh mount; do
ln -fs busybox "${initramfs_dir}/bin/$link"
done
cd "${initramfs_dir}"
find . | cpio -H newc -o | gzip

0
hacking/create_iso.sh → hacking/v3-busybox/create_iso.sh

0
hacking/qemu-test.sh → hacking/v3-busybox/qemu-test.sh

Loading…
Cancel
Save