|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: target/early/build-initramfs.in |
|
|
|
# Copyright (C) 2007 - 2010 The OpenSDE Project |
|
|
|
# Copyright (C) 2007 - 2013 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
@ -32,7 +32,7 @@ initramfs_install() { |
|
|
|
cp "$root/usr/bin/strace" "$initrddir/bin/" |
|
|
|
;; |
|
|
|
sysfiles) |
|
|
|
for x in etc/{,SDE-}VERSION etc/{passwd,group} etc/rc.d/functions{,-ansi}.in; do |
|
|
|
for x in etc/{,SDE-}VERSION etc/{passwd,group} etc/init.d/functions{,-ansi}.in; do |
|
|
|
cp "$root/$x" "$initrddir/$x" |
|
|
|
done |
|
|
|
for x in etc/{fstab,hosts,resolv.conf}; do |
|
|
@ -50,12 +50,13 @@ initramfs_install() { |
|
|
|
early_adjust_initrd() { |
|
|
|
echo_status "Tweaking initrd ..." |
|
|
|
for x in var/spool/{locks,mail} \ |
|
|
|
usr/{doc,info,man,opt,spool} etc/{rc.d/,}init.d usr |
|
|
|
usr/{doc,info,man,opt,spool} etc/init.d usr |
|
|
|
do |
|
|
|
rm ${rootfs}/$x |
|
|
|
done |
|
|
|
|
|
|
|
mkdir "${rootfs}/rootfs" |
|
|
|
set +x |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|