blob: 10d48719b256b7a0b892dbe6f1840efcf0974b8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -dPNur mkinitrd-4.2.17/mkinitrd mkinitrd-4.2.17-csa/mkinitrd
--- mkinitrd-4.2.17/mkinitrd 2005-10-28 07:35:15.000000000 +0000
+++ mkinitrd-4.2.17-csa/mkinitrd 2005-10-28 07:40:56.000000000 +0000
@@ -61,6 +61,8 @@
[ -f /etc/sysconfig/mkinitrd ] && source /etc/sysconfig/mkinitrd
+mount /boot &> /dev/null
+
usage () {
echo "usage: `basename $0` [--version] [-v] [-f] [--preload <module>]" >&2
echo " [--with=<module>] [--omit-scsi-modules] [--omit-raid-modules]" >&2
@@ -1134,6 +1136,8 @@
echo "pivot_root /sysroot /sysroot/initrd" >> $RCFILE
[ -n "$kernel25" ] && echo "umount /initrd/sys" >> $RCFILE
echo "umount /initrd/proc" >> $RCFILE
+ echo "umount /initrd/dev" >> $RCFILE
+ echo "umount /initrd" >> $RCFILE
fi
else
[ -n "$readonly" ] && echo "umount /dev" >> $RCFILE
@@ -1154,7 +1158,7 @@
case $initrdfs in
ext2|ext3|minix)
- for i in `/bin/find $MNTIMAGE -printf '%k\n'`; do
+ for i in `find $MNTIMAGE -printf '%k\n'`; do
IMAGESIZE=$[IMAGESIZE + $i]
NB_INODES=$[NB_INODES + 1]
done
diff -dPNur mkinitrd-4.2.17/nash/nash.c mkinitrd-4.2.17-csa/nash/nash.c
--- mkinitrd-4.2.17/nash/nash.c 2005-10-28 07:35:15.000000000 +0000
+++ mkinitrd-4.2.17-csa/nash/nash.c 2005-10-28 07:35:22.000000000 +0000
@@ -1078,7 +1078,7 @@
return 1;
}
- if (umount(path)) {
+ if (umount2(path,MNT_DETACH)) {
printf("umount %s failed: %d\n", path, errno);
return 1;
}
|