[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#363437: marked as done (initramfs-tools: [S/390] dasd hook script being run twice causes error)



Your message dated Sat, 29 Apr 2006 23:40:34 +0200
with message-id <200604292340.34583.aragorn@tiscali.nl>
and subject line Bug#363437: initramfs-tools: [S/390] dasd hook script being run twice causes error
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: initramfs-tools
Version: 0.59b

I've reported this before, but now I've traced it...

During kernel upgrade on S/390 I see this error:
 ln: creating symbolic link `/tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd'
 to `/tmp/initramfs_dasd': File exists

The attached trace (which cost me quite a lot of pain to obtain because it 
looks like 'set -x' gets unset in the cause of running mkinitramfs...) 
shows that this is because the script /etc/mkinitramfs/hooks/dasd gets 
executed twice.

Could it be that that script should just 'exit 0' if it's called the first 
time with the "prereqs" parameter (or, alternatively, the second time 
when it's called without parameter)?
+ echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ echo 'Running /etc/mkinitramfs/hooks....'
Running /etc/mkinitramfs/hooks....
+ echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ run_scripts /etc/mkinitramfs/hooks
+ initdir=/etc/mkinitramfs/hooks
+ get_prereqs
+ set_initlist
+ unset initlist
+ for si_x in '${initdir}/*'
+ '[' '!' -x /etc/mkinitramfs/hooks/dasd ']'
++ basename /etc/mkinitramfs/hooks/dasd
+ initlist=' dasd'
+ for gp_x in '${initlist}'
++ /etc/mkinitramfs/hooks/dasd prereqs

+ . /usr/share/initramfs-tools/hook-functions
+ '[' -r /proc/dasd/devices ']'
++ cut '-d(' -f1 /proc/dasd/devices
+ dasd_dev='0.0.0120
0.0.0121'
+ for dev in '$dasd_dev'
+ '[' -n '' ']'
+ dasd_devs=0.0.0120
+ for dev in '$dasd_dev'
+ '[' -n 0.0.0120 ']'
+ dasd_devs=0.0.0120,
+ dasd_devs=0.0.0120,0.0.0121
+ '[' -n 0.0.0120,0.0.0121 ']'
+ echo 'options dasd_mod dasd=0.0.0120,0.0.0121'
+ copy_exec /tmp/initramfs_dasd /etc/modprobe.d/dasd
++ basename /tmp/initramfs_dasd
+ final_destination=/tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd/initramfs_dasd
+ '[' -L /tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd/initramfs_dasd ']'
+ ln -s /tmp/initramfs_dasd /tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd
++ sed -e '
            /\//!d;
            /linux-gate/d;
            /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
            s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/'
++ ldd /tmp/initramfs_dasd

+ tmp=
+ eval 'array_dasd=""'
++ array_dasd=
+ reduce_prereqs
+ unset runlist
+ set_initlist
+ unset initlist
+ for si_x in '${initdir}/*'
+ '[' '!' -x /etc/mkinitramfs/hooks/dasd ']'
++ basename /etc/mkinitramfs/hooks/dasd
+ initlist=' dasd'
+ set - dasd

+ . /usr/share/initramfs-tools/hook-functions
+ '[' -r /proc/dasd/devices ']'
++ cut '-d(' -f1 /proc/dasd/devices
+ dasd_dev='0.0.0120
0.0.0121'
+ for dev in '$dasd_dev'
+ '[' -n '' ']'
+ dasd_devs=0.0.0120
+ for dev in '$dasd_dev'
+ '[' -n 0.0.0120 ']'
+ dasd_devs=0.0.0120,
+ dasd_devs=0.0.0120,0.0.0121
+ '[' -n 0.0.0120,0.0.0121 ']'
+ echo 'options dasd_mod dasd=0.0.0120,0.0.0121'
+ copy_exec /tmp/initramfs_dasd /etc/modprobe.d/dasd
++ basename /tmp/initramfs_dasd
+ final_destination=/tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd/initramfs_dasd
+ '[' -L /tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd/initramfs_dasd ']'
+ ln -s /tmp/initramfs_dasd /tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd
ln: creating symbolic link `/tmp/mkinitramfs_laxXYw//etc/modprobe.d/dasd' to `/tmp/initramfs_dasd': File exists
++ ldd /tmp/initramfs_dasd
++ sed -e '
            /\//!d;
            /linux-gate/d;
            /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
            s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/'

Attachment: pgpOLc329sT9z.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
On Saturday 29 April 2006 16:43, you wrote:
> > mkinitramfs...) shows that this is because the script
> > /etc/mkinitramfs/hooks/dasd gets executed twice.
>
> can you please attach that hook to the report?

Well, let's just close the BR instead as nothing seems to own that file 
and both Bastian and I have no idea where and when it can have come from.

I've deleted the file just before an upgrade where all relevant packages 
were updated and the file did not reappear and the system boots fine 
without it, so let's dismiss it as "cruft" for now.

Thanks,
Frans

Attachment: pgpLlVdXpnzfA.pgp
Description: PGP signature


--- End Message ---

Reply to: