bundle agent grub { # Configure GRUB: # - for plymouth (everywhere except on servers) # - handle the network interface setup (keep old device names) for networked # systems (everywhere except on roaming machines and standalone) files: debian.(standalone|roaming).di.installation:: "/etc/default/grub" edit_line => grub_conf1; debian.workstation.!server.!standalone.!roaming.di.installation:: "/etc/default/grub" edit_line => grub_conf2; debian.(server|minimal).di.installation:: "/etc/default/grub" edit_line => grub_conf3; commands: debian.di.installation:: "/usr/sbin/update-grub" contain => in_shell; } bundle edit_line grub_conf1 { replace_patterns: "LINUX_DEFAULT=\"quiet" replace_with => value("LINUX_DEFAULT=\"splash quiet"); } bundle edit_line grub_conf2 { replace_patterns: "LINUX_DEFAULT=\"quiet" replace_with => value("LINUX_DEFAULT=\"net.ifnames=0 splash quiet"); } bundle edit_line grub_conf3 { replace_patterns: "LINUX_DEFAULT=\"quiet" replace_with => value("LINUX_DEFAULT=\"net.ifnames=0 quiet"); }