[Bug 1332907] Re: /scripts/local-top/kbdrate.sh: permission denied

Patrik Nilsson 1332907 at bugs.launchpad.net
Sat Jun 28 14:57:23 UTC 2014


It comes from a package I have installed, but unsure which.

patrik at ubuntu:~$ cat /usr/share/initramfs-tools/scripts/local-top/kbdrate.sh
cat: /usr/share/initramfs-tools/scripts/local-top/kbdrate.sh: No such file or directory
patrik at ubuntu:~$ sudo cat /usr/share/initramfs-tools/scripts/local-top/kbdrate.sh
[sudo] password for patrik: 
cat: /usr/share/initramfs-tools/scripts/local-top/kbdrate.sh: No such file or directory

patrik at ubuntu:~$ sudo find / -iname kbdrate.sh
/etc/initramfs-tools/hooks/kbdrate.sh
/etc/initramfs-tools/scripts/local-top/kbdrate.sh

patrik at ubuntu:~$ sudo ls -Al /etc/initramfs-tools/scripts/local-top/kbdrate.sh
-rw-r--r-- 1 root root 367 Aug 20  2013 /etc/initramfs-tools/scripts/local-top/kbdrate.sh

patrik at ubuntu:~$ sudo ls -Al /etc/initramfs-tools/hooks/kbdrate.sh
-rw-r--r-- 1 root root 348 Aug 20  2013 /etc/initramfs-tools/hooks/kbdrate.sh

patrik at ubuntu:~$ sudo cat /etc/initramfs-tools/scripts/local-top/kbdrate.sh
#!/bin/sh
# kbdrate boot script

PREREQ=""
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

# Begin real processing below this line
if [ ! -x "/sbin/kbdrate" ]; then
   panic "/sbin/kbdrate executable not found"
fi

log_begin_msg "Starting kbdrate"
/sbin/kbdrate -r 10.9 -d 500 || panic "/sbin/kbdrate failed"
log_end_msg

exit 0

patrik at ubuntu:~$ sudo cat /etc/initramfs-tools/hooks/kbdrate.sh
#!/bin/sh
# Example kbdrate hook script

PREREQ=""
prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

if [ ! -x "/sbin/kbdrate" ]; then
   exit 0
fi

force_load frobnicator interval=10
cp /sbin/kbdrate "${DESTDIR}/sbin"
exit 0

patrik at ubuntu:~$ sudo chmod 755 /etc/initramfs-tools/scripts/local-top/kbdrate.sh
patrik at ubuntu:~$ sudo chmod 755 /etc/initramfs-tools/hooks/kbdrate.sh
patrik at ubuntu:~$ sudo update-initramfs
You must specify at least one of -c, -u, or -d.

Usage: /usr/sbin/update-initramfs [OPTION]...

Options:
 -k [version]	Specify kernel version or 'all'
 -c		Create a new initramfs
 -u		Update an existing initramfs
 -d		Remove an existing initramfs
 -t		Take over a custom initramfs with this one
 -b		Set alternate boot directory
 -v		Be verbose
 -h		This message

patrik at ubuntu:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.13.0-30-generic
patrik at ubuntu:~$

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1332907

Title:
  /scripts/local-top/kbdrate.sh: permission denied

Status in “upstart” package in Ubuntu:
  New

Bug description:
  I installed Ubuntu 14.04 from scratch with LUKS-cryptsetup, so I
  always need to type the password before the system can mount the
  harddisks.

  During start, if I press ESC when prompted for the password, I can see
  the console.

  There is an error message "/scripts/local-top/kbdrate.sh: permission
  denied".

  This error message also existed on Ubuntu 12.04.

  patrik at ubuntu:~$ lsb_release -rd
  Description:	Ubuntu 14.04 LTS
  Release:	14.04
  patrik at ubuntu:~$ apt-cache policy upstart
  upstart:
    Installed: 1.12.1-0ubuntu4
    Candidate: 1.12.1-0ubuntu4
    Version table:
   *** 1.12.1-0ubuntu4 0
          500 http://se.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status
  patrik at ubuntu:~$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1332907/+subscriptions



More information about the foundations-bugs mailing list