run-init crashes when root is unionfs on nfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.20 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
In initramfs-
1) We used this method with Dapper and it worked perfectly.
2) With Feisty, we get the oops.
The script to mount the unionfs over NFS root looks like this:
-------
#!/bin/sh
PREREQ=""
DESCRIPTION=
. /scripts/functions
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
log_begin_msg "$DESCRIPTION"
mkdir -p /cow
mount -n -t tmpfs tmpfs /cow
mount -n -t unionfs -o dirs=/cow=
. /tmp/net-eth0.conf
cat > ${rootmnt}
search $DNSDOMAIN
nameserver $IPV4DNS0
EOF
log_end_msg
-------
If I comment out the line with the unionfs mount, then everything works fine.
Steps to reproduce:
1) Add the above script to /usr/share/
2) Update your initramfs (update-initramfs -u)
3) Boot with the initramfs over NFS.
Oops when run-init is called...
Changed in initramfs-tools: | |
status: | Unconfirmed → Rejected |
Changed in linux-source-2.6.20: | |
assignee: | nobody → phillip-lougher |
Changed in linux-source-2.6.20: | |
importance: | Undecided → Medium |
Changed in linux-source-2.6.20: | |
status: | Fix Committed → Fix Released |
Confirmed. The unionfs mount doesn't actually need to be performed as part of the initramfs to cause a kernel hang. Issuing the unionfs mount on an NFS filesystem in the shell caused my system to hang...
A couple of things to clarify:
1. Are both your Dapper and Feisty kernels using the vanilla Unionfs code merged by Ubuntu?
2. Did your system kernel oops or hang? If it kernel oopsed, can you attach the oops message (or take a picture of the screen if that's not possible).
Dapper has Unionfs version 1.1.2. Feisty has a snapshot from 20060916. It is quite possible there is a regression there. Will investigate further.