1
0
mirror of https://github.com/MichielDerhaeg/build-linux.git synced 2025-09-20 12:31:32 +02:00

script works

This commit is contained in:
Michiel Derhaeg
2016-08-02 15:31:39 +02:00
parent 4b0e1a5007
commit c66748b657
6 changed files with 129 additions and 27 deletions

4
filesystem/Makefile Normal file
View File

@@ -0,0 +1,4 @@
FS_FILES=build.sh crypttab filesystem.install fstab group gshadow host.conf hosts inittab issue ld.so.conf locale.sh modprobe.d.usb-load-ehci-first motd nsswitch.conf os-release passwd profile rcS resolv.conf securetty shadow shells
all: build.sh $(FS_FILES)
fakeroot ./build.sh

View File

@@ -1,5 +1,6 @@
#!/bin/sh
rm -rf root
mkdir root
pkgdir=$PWD/root
srcdir=$PWD
@@ -83,10 +84,11 @@ ln -s ../man usr/local/share/man
### --- custom
install -m755 ../../busybox usr/bin/busybox
install -m755 ../../bzImage boot/bzImage
busybox --install -s usr/bin
install -m644 "$srcdir/inittab" etc/inittab
install -d -m755 etc/init.d
install -m755 "$srcdir/rcS" etc/init.d/rcS
tar --xattrs -cpf ../fs.tar *
tar --xattrs -cpf ../../fs.tar *