]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
flash-images: change root uuid replacer sed
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 24 Feb 2016 15:01:33 +0000 (16:01 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 24 Feb 2016 15:01:33 +0000 (16:01 +0100)
i cannot really test this on my systems.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/flash-images

index 36a0425754d05e9be73bfc3c484591b3065c6d6d..0d57a2a8d673c7f60384a5d0ae602f2049a8da0f 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2014  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2016  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -185,7 +185,7 @@ endif
        # Insert the UUID because grub-mkconfig often fails to
        # detect that correctly
        sed -i $(MNThdd)/boot/grub/grub.cfg \
        # Insert the UUID because grub-mkconfig often fails to
        # detect that correctly
        sed -i $(MNThdd)/boot/grub/grub.cfg \
-               -e "s/root=[A-Za-z0-9=-\/]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"
+               -e "s/root=[A-Za-z0-9\/=-]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"
 
        # Install GRUB
        grub-install --force --recheck --no-floppy \
 
        # Install GRUB
        grub-install --force --recheck --no-floppy \