Kernel compilation error

Bug #1318358 reported by Nazar Mokrynskyi
This bug report is a duplicate of:  Bug #1308183: make_kpkg runs postinst scripts. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rapt
Fix Released
Undecided
Unassigned

Bug Description

When I compile kernel with suck command:
CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-haswell kernel_image kernel_headers
I get error:
/etc/kernel/postinst.d/apt-auto-removal: 84: /etc/kernel/postinst.d/apt-auto-removal: cannot create /etc/apt/apt.conf.d//01autoremove-kernels.dpkg-new: Permission denied

This happen in 14.04, but was OK in 13.10
As I'm not compiling it under root/
Here is possible fix:
Lines 84 and 85 of /etc/kernel/postinst.d/apt-auto-removal

generateconfig > "${config_file}.dpkg-new"
mv "${config_file}.dpkg-new" "$config_file"

Should be changed to:

generateconfig >"$config_file"

Tags: trusty
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

It works fine now, someone fixed it.

Changed in rapt:
status: New → Invalid
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.