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

Bug#435565: casper: Fail to run properly when /bin/sh is dash (bashism)

Package: casper
Version: 1.77+debian-7
Severity: important

While building Live CDs for Debian Edu, I discovered messages like
this in the build log:

  Setting up usplash (0.3e) ...
  update-initramfs: Generating /boot/initrd.img-2.6.18-4-486
  [: 43: ==: unexpected operator
  cpio: ./etc/udev/rules.d/z99_hal.rules: No such file or directory

The message about == being an unexpected operator is typical for
bashism in scripts using /bin/sh when /bin/sh is dash as it is in
Debian Edu.

After trying to track down the source of this message, I found the
reason to be the casper scripts using == in several places.  Here is a
list of files in /usr/share/initramfs-tools/ matching '==':


Please modify these scripts to use the POSIX = test operator instead
of the bash == operator.

Happy hacking,
Petter Reinholdtsen

Reply to: