why fix mountall: Evnet failed with different way?

Asked by wally

Hi, I recently looking my custom ubuntu have a error message "mountall: Event failed" since I change my kernel.

the root cause is /proc/slabinfo is not generated anymore by my new kernel; but /etc/init/mounted-proc have following code:
    chmod 0400 "${MOUNTPOINT}"/slabinfo
this make mountall output the error message.

I've noticed this issue is fixed in version 2.54ubuntu1, using following code:
    if [ -e "${MOUNTPOINT}"/slabinfo ]; then
        chmod 0400 "${MOUNTPOINT}"/slabinfo

my question is there also already same fix for "mountall: Event failed" in /etc/init/mounted-debugfs:
    chmod 0700 "${MOUNTPOINT}" || true

why we not using the SAME way to fix the SAME problem?

maybe we should change /etc/init/mounted-debugfs to:
    if [ -e "${MOUNTPOINT}" ]; then
        chmod 0700 "${MOUNTPOINT}"

Question information

English Edit question
Ubuntu mountall Edit question
No assignee Edit question
Solved by:
Manfred Hampl
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :

I suggest you create a bug report

Revision history for this message
wally (wally-yeh) said :

Ok, I open a bug report for it, but I'm not sure we can call a suggestion as a bug or not.

Revision history for this message
wally (wally-yeh) said :

Thanks Manfred Hampl, that solved my question.