Browse Source

rename & cleanup

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
4.0-pre-not-stable
Nico Schottelius 7 years ago
parent
commit
bb9d889d15
  1. 1
      hacking/.gitignore
  2. 5
      hacking/README
  3. 0
      hacking/v2-initramfs-from-os/bin_to_pkg.sh
  4. 0
      hacking/v2-initramfs-from-os/copy_files_for_iso.sh
  5. 8
      hacking/v2-initramfs-from-os/filelist_from_package.sh
  6. 12
      hacking/v3-busybox/copy_bin_with_libs.sh
  7. 2
      hacking/v3-busybox/create_initramfs.sh

1
hacking/.gitignore vendored

@ -1,2 +1,3 @@
iso/
*.iso
preos/

5
hacking/README

@ -2,9 +2,14 @@
- rootfs fix
- get working to login
- have sshd enabled
- kernel -> initramfs?
http://jootamam.net/howto-initramfs-image.htm
- busybox!!
- everything into initramfs?
- permission problem on various files below /etc
- Target:
- get working iso
- have it configured and gathered by cdist?

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

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

8
hacking/v2-initramfs-from-os/filelist_from_package.sh

@ -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

12
hacking/recursive-ldd.sh → hacking/v3-busybox/copy_bin_with_libs.sh

@ -6,14 +6,20 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin
pkg="
#bin_list="udevadm bash fdisk mount syslinux umount rm mv"
bin_list="udevadm fdisk"
bin_list="bash fdisk mount syslinux umount rm mv"
libs=$(mktemp /tmp/cdist-preos-libs.XXXXXXXXXXXXX)
for bin in bin_list; do
for bin in command_list; do
done
rm -f "$libs"
# lfs
## ldd /bin/$f | sed "s/\t//" | cut -d " " -f1 >> $unsorted
exit 0

2
hacking/v3-busybox/create_initramfs.sh

@ -20,6 +20,8 @@ done
cd "${initramfs_dir}"
find . | cpio -H newc -o | gzip
rm -rf "${initramfs_dir}"
exit 0
# TODO:

Loading…
Cancel
Save