DNA linearization by nanoconfinement has offered a new avenue toward large-scale genome mapping. The ability to smoothly interface the widely different length scales from cell manipulation to DNA linearization is critical to the development of single-cell genomic mapping or sequencing technologies. Conventional nanochannel technologies for DNA analysis suffer from complex fabrication procedures, DNA stacking at the nanochannel entrance, and inefficient solution exchange. In this work, a dynamic and tunable confinement strategy is developed to manipulate and linearize genomic-length DNA molecules from a single cell. By leveraging pneumatic microvalve control and elastomeric collapse, an array of nanochannels with confining dimension down to 20 nm and length up to sub-millimeter is created and can be dynamically tuned in size. The curved edges of the microvalve form gradual transitions from microscale to nanoscale confinement, smoothly facilitating DNA entry into the nanochannels. A unified micro/nanofluidic device that integrates single-cell trapping and lysis, DNA extraction, purification, labeling, and linearization is developed based on dynamically controllable nanochannels. Mbp-long DNA molecules are extracted directly from a single cell and in situ linearized in the nanochannels. The device provides a facile and promising platform to achieve the ultimate goal of single-cell, single-genome analysis.