title: Bash script with fdisk
body: <p>I came across this bash script to expand the fs after making the root volume larger on an ami made with Packer. Can someone please explain the meaning of the fdisk options in the heredoc? </p>
  
  <pre><code>#!/bin/bash
  fdisk /dev/xvda &lt;&lt;EEOF
  d
  n
  p
  1
  1
  
  w
  EEOF
  exit 0
  </code></pre>
  
  <p>Thank you!</p>