unsubscribe
---------- Forwarded message ---------- From: Anton Pushkarev <1030...@bugs.launchpad.net> Date: Fri, 27 Jul 2012 18:40:11 -0000 Subject: [Bug 1030085] [NEW] Password protected menu has incorrect usage of the --users tag To: bkh...@gmail.com Public bug reported: At the page https://help.ubuntu.com/community/Grub2/Passwords#Protecting_Menuentries, Protecting Menuentries section there are following mistakes: 1. Adding Protection to Ubuntu Entries subsection A piece of instruction reads Add --users : printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}" "${version}" Actually it should be --users \"\" 2. Adding Protection to Other Entries subsection Instructions in the box read: sudo sed 's/--class os /--class os --users /' -i /etc/grub.d/30_os- prober I think --users should also be changed as in the section above (I did not test this). The thing is that in case of plain menuentry instruction (without printf) --users "" work fine. But if there's printf in front of it the actual menuentry is generated in grub.cfg without those quotes. An example of broken configuration is below: menuentry 'Ubuntu, with Linux 3.2.0-27-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --users { This small issue actually broke my bootloader so I was not able to quickly figure out what had happened. Details about my installation as follows: lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 ** Affects: ubuntu-docs (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are subscribed to ubuntu- docs in Ubuntu. https://bugs.launchpad.net/bugs/1030085 Title: Password protected menu has incorrect usage of the --users tag Status in “ubuntu-docs” package in Ubuntu: New Bug description: At the page https://help.ubuntu.com/community/Grub2/Passwords#Protecting_Menuentries, Protecting Menuentries section there are following mistakes: 1. Adding Protection to Ubuntu Entries subsection A piece of instruction reads Add --users : printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}" "${version}" Actually it should be --users \"\" 2. Adding Protection to Other Entries subsection Instructions in the box read: sudo sed 's/--class os /--class os --users /' -i /etc/grub.d/30_os- prober I think --users should also be changed as in the section above (I did not test this). The thing is that in case of plain menuentry instruction (without printf) --users "" work fine. But if there's printf in front of it the actual menuentry is generated in grub.cfg without those quotes. An example of broken configuration is below: menuentry 'Ubuntu, with Linux 3.2.0-27-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --users { This small issue actually broke my bootloader so I was not able to quickly figure out what had happened. Details about my installation as follows: lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1030085/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1030085 Title: Password protected menu has incorrect usage of the --users tag To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1030085/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs