mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 03:11:12 +00:00
fix remaining wrong references to /etc/default/grub.d/40-partuuid
This commit is contained in:
commit
e7008feb7a
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (2.467) UNRELEASED; urgency=medium
|
||||
|
||||
* fix remaining wrong references to /etc/default/grub.d/40-partuuid
|
||||
|
||||
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 04 Oct 2017 23:51:56 -0700
|
||||
|
||||
livecd-rootfs (2.466) artful; urgency=medium
|
||||
|
||||
* ubuntu-server: drop hard-coded test key from the subiquity overlay in
|
||||
|
@ -276,8 +276,9 @@ replace_grub_root_with_label() {
|
||||
CHROOT_ROOT="$1"
|
||||
|
||||
# If boot by partuuid has been requested, don't override.
|
||||
if [ -f $CHROOT_ROOT/etc/default/grub.d/40-partuuid ] && \
|
||||
grep -q ^GRUB_FORCE_PARTUUID= $CHROOT_ROOT/etc/default/grub.d/40-partuuid.cfg; then
|
||||
if [ -f $CHROOT_ROOT/etc/default/grub.d/40-force-partuuid.cfg ] && \
|
||||
grep -q ^GRUB_FORCE_PARTUUID= $CHROOT_ROOT/etc/default/grub.d/40-force-partuuid.cfg
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
sed -i -e "s,root=[^ ]\+,root=LABEL=${fs_label}," \
|
||||
|
Loading…
x
Reference in New Issue
Block a user