~ubuntu-installer/flash-kernel/master

« back to all changes in this revision

Viewing changes to initramfs-tools/hooks/flash_kernel_set_root

  • Committer: Vagrant Cascadian
  • Date: 2018-01-20 07:43:13 UTC
  • Revision ID: git-v1:65bdf127fc1f170d3f94d45cd9c50ea5dc4210af
Add support for root device specified by PARTLABEL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                                echo "PARTUUID $b doesn't exist in /dev/disk/by-partuuid" >&2
93
93
                        fi
94
94
                ;;
 
95
                PARTLABEL)
 
96
                        rootdev=/dev/disk/by-partlabel/$b
 
97
                        if [ ! -e $rootdev ]; then
 
98
                                echo "PARTLABEL $b doesn't exist in /dev/disk/by-partlabel" >&2
 
99
                        fi
 
100
                ;;
95
101
                *)
96
102
                        echo "/etc/fstab parse error; cannot recognize root $rootdev" >&2
97
103
                        rootdev=/dev/sda2