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:
4
filesystem/Makefile
Normal file
4
filesystem/Makefile
Normal 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
|
@@ -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 *
|
||||
|
Reference in New Issue
Block a user