mkdir usr/*bin in sles11
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=117
This commit is contained in:
parent
b97e5fb309
commit
091ceda4ba
@ -1,7 +1,7 @@
|
||||
---
|
||||
mkinitrd/scripts/setup-prepare.sh | 90 +++++++++++++++++++++++++++++++-------
|
||||
mkinitrd/scripts/setup-prepare.sh | 94 +++++++++++++++++++++++++++++++-------
|
||||
mkinitrd/scripts/setup-progs.sh | 5 --
|
||||
2 files changed, 77 insertions(+), 18 deletions(-)
|
||||
2 files changed, 79 insertions(+), 20 deletions(-)
|
||||
|
||||
Index: 1110/mkinitrd/scripts/setup-prepare.sh
|
||||
===================================================================
|
||||
@ -29,11 +29,7 @@ Index: 1110/mkinitrd/scripts/setup-prepare.sh
|
||||
cp_bin() {
|
||||
- cp -a "$@" \
|
||||
- || exit_code=1
|
||||
+ local -a files
|
||||
+ local target
|
||||
+ local target_dirname
|
||||
+ local file
|
||||
|
||||
-
|
||||
- # Remember the binaries installed. We need the list for checking
|
||||
- # for dynamic libraries.
|
||||
- while [ $# -gt 1 ]; do
|
||||
@ -47,6 +43,11 @@ Index: 1110/mkinitrd/scripts/setup-prepare.sh
|
||||
- elif [ -d "$1" -o -f "$1" ]; then
|
||||
- find "$1" -type f -print0 | xargs -0 chmod 0755
|
||||
- fi
|
||||
+ local -a files
|
||||
+ local target
|
||||
+ local target_dirname
|
||||
+ local file
|
||||
+
|
||||
+ # need at least two parameters, source and destination
|
||||
+ if test $# -lt 2
|
||||
+ then
|
||||
@ -126,6 +127,35 @@ Index: 1110/mkinitrd/scripts/setup-prepare.sh
|
||||
feature="${1##*/}"
|
||||
feature="${feature#*-}"
|
||||
feature="${feature%.sh}"
|
||||
@@ -146,27 +206,27 @@ fi
|
||||
for feature in $ADDITIONAL_FEATURES ; do
|
||||
feature_exists "$feature" || echo "[WARNING] Feature \"$feature\" not found. A typo?"
|
||||
done
|
||||
|
||||
# create an empty initrd
|
||||
if ! mkdir $tmp_mnt ; then
|
||||
error 1 "could not create temporary directory"
|
||||
fi
|
||||
|
||||
# fill the initrd
|
||||
cp $INITRD_PATH/bin/linuxrc $linuxrc
|
||||
mkdir "$tmp_mnt/boot"
|
||||
|
||||
-mkdir -p $tmp_mnt/{sbin,bin,etc,dev,proc,sys,root,config}
|
||||
+mkdir -p $tmp_mnt/{sbin,bin,etc,dev,proc,sys,root,config,usr/bin,usr/sbin}
|
||||
|
||||
mkdir -p -m 4777 $tmp_mnt/tmp
|
||||
|
||||
# Create a dummy /etc/mtab for mount/umount
|
||||
echo -n > $tmp_mnt/etc/mtab
|
||||
|
||||
# Add modprobe, modprobe.conf*, and a version of /bin/true: modprobe.conf
|
||||
# might use it.
|
||||
cp -r $root_dir/etc/modprobe.conf $root_dir/etc/modprobe.conf.local \
|
||||
$root_dir/etc/modprobe.d $tmp_mnt/etc
|
||||
cat > $tmp_mnt/bin/true <<-EOF
|
||||
#! /bin/sh
|
||||
:
|
||||
Index: 1110/mkinitrd/scripts/setup-progs.sh
|
||||
===================================================================
|
||||
--- 1110.orig/mkinitrd/scripts/setup-progs.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user