selinux.config script seems to require grub

Bug #198163 reported by Cafuego
2
Affects Status Importance Assigned to Milestone
selinux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: selinux

When installing on a Xen VM I was told:

Preconfiguring packages ...
GRUB configuration file not found.
selinux failed to preconfigure, with exit status 1

The VM does not use a bootloader, and thus GRUB is not installed. It looks like the selinux.config script should ask me if it should configure grub, but it has not done this and defaults to managing the config.

I worked around by creating an empty /boot/grub/menu.lst file.

Revision history for this message
Caleb Case (calebcase) wrote : Re: [Bug 198163] [NEW] selinux.config script seems to require grub

On Mon, Mar 3, 2008 at 5:32 PM, Cafuego <email address hidden> wrote:
> Public bug reported:
>
> Binary package hint: selinux
>
> When installing on a Xen VM I was told:
>
> Preconfiguring packages ...
> GRUB configuration file not found.
> selinux failed to preconfigure, with exit status 1
>
> The VM does not use a bootloader, and thus GRUB is not installed. It
> looks like the selinux.config script should ask me if it should
> configure grub, but it has not done this and defaults to managing the
> config.

The selinux.config script will ask you to update grub if your
DEBIAN_PRIORITY is set to medium or lower. If you choose not to update
grub (for instance you don't have grub), then it will also post a
message indicating that you probably need to update your boot loader
flags.

>
> I worked around by creating an empty /boot/grub/menu.lst file.
>
> ** Affects: selinux (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> selinux.config script seems to require grub
> https://bugs.launchpad.net/bugs/198163
> You received this bug notification because you are subscribed to selinux
> in ubuntu.
>

Revision history for this message
Cafuego (cafuego) wrote :

Ah ok, mine was set to high. However, I seem to not be able to rerun the config:

cafuego@vm-03:~$ sudo dpkg-reconfigure -plow selinux
dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)

Revision history for this message
Caleb Case (calebcase) wrote : Re: [Bug 198163] Re: selinux.config script seems to require grub

On Mon, Mar 3, 2008 at 6:57 PM, Cafuego <email address hidden> wrote:
> Ah ok, mine was set to high. However, I seem to not be able to rerun the
> config:
>
> cafuego@vm-03:~$ sudo dpkg-reconfigure -plow selinux
> dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
>

Odd... dpkg-reconfigure should be setting up the environment variable
DPKG_MAINTSCRIPT_PACKAGE. Try:

$ sudo DPKG_MAINTSCRIPT_PACKAGE=selinux dpkg-reconfigure -plow selinux

>
>
> --
> selinux.config script seems to require grub
> https://bugs.launchpad.net/bugs/198163
> You received this bug notification because you are subscribed to selinux
> in ubuntu.
>

Revision history for this message
Caleb Case (calebcase) wrote :

On Tue, Mar 4, 2008 at 11:29 AM, Caleb Case <email address hidden> wrote:
> On Mon, Mar 3, 2008 at 6:57 PM, Cafuego <email address hidden> wrote:
> > Ah ok, mine was set to high. However, I seem to not be able to rerun the
> > config:
> >
> > cafuego@vm-03:~$ sudo dpkg-reconfigure -plow selinux
> > dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
> >
>
> Odd... dpkg-reconfigure should be setting up the environment variable
> DPKG_MAINTSCRIPT_PACKAGE. Try:
>
> $ sudo DPKG_MAINTSCRIPT_PACKAGE=selinux dpkg-reconfigure -plow selinux

See LP: #198421 for more on this.

>
> >
> >
> > --
>
>
> > selinux.config script seems to require grub
> > https://bugs.launchpad.net/bugs/198163
> > You received this bug notification because you are subscribed to selinux
> > in ubuntu.
> >
>

Changed in selinux:
status: New → Invalid
Revision history for this message
Cafuego (cafuego) wrote :

Caleb Case wrote:
> On Tue, Mar 4, 2008 at 11:29 AM, Caleb Case <email address hidden> wrote:
>> On Mon, Mar 3, 2008 at 6:57 PM, Cafuego <email address hidden> wrote:
>> > Ah ok, mine was set to high. However, I seem to not be able to rerun the
>> > config:
>> >
>> > cafuego@vm-03:~$ sudo dpkg-reconfigure -plow selinux
>> > dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
>> >
>>
>> Odd... dpkg-reconfigure should be setting up the environment variable
>> DPKG_MAINTSCRIPT_PACKAGE. Try:
>>
>> $ sudo DPKG_MAINTSCRIPT_PACKAGE=selinux dpkg-reconfigure -plow selinux
>
> See LP: #198421 for more on this.

Righto, thankyou.

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.