This fixes the symlinks created by the Azure storage rules, which depend on readlink and cut being present. Before this change the Fedora Cloud image would produce a symlink at /dev/disk/azure -> /dev/sda instead of /dev/disk/azure being a directory of symlinks to the device and any partitions it contains.
17 lines
245 B
Bash
17 lines
245 B
Bash
#!/usr/bin/bash
|
|
|
|
# called by dracut
|
|
check() {
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
depends() {
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
install() {
|
|
inst_multiple chmod cut readlink
|
|
inst_rules 66-azure-storage.rules 99-azure-product-uuid.rules
|
|
}
|