penguins-eggs
Version:
A remaster system tool, compatible with Arch, Debian, Devuan, Ubuntu and others
21 lines (20 loc) • 751 B
JavaScript
/**
* ./src/krill/modules/unpackfs.ts
* penguins-eggs v.10.0.0 / ecmascript 2020
* author: Piero Proietti
* email: piero.proietti@gmail.com
* license: MIT
* https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
*/
import Utils from '../../../classes/utils.js';
import { exec } from '../../../lib/utils.js';
/**
* unpackfs
*/
export default async function unpackfs() {
// const cmd = `unsquashfs -d ${this.installTarget} -f ${this.distro.liveMediumPath}`
const cmd = `unsquashfs -d ${this.installTarget} -f ${this.distro.liveMediumPath}${this.distro.squashfs} ${this.toNull}`;
const echoYes = Utils.setEcho(true);
const echoNo = Utils.setEcho(false);
await exec(cmd, echoNo);
}