mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
hdd_menu: fix device name on fdisk invocation
Origin commit data
------------------
Branch: ni/coolstream
Commit: d1836f497c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-22 (Sun, 22 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1048,7 +1048,7 @@ int CHDDMenuHandler::formatDevice(std::string dev)
|
||||
snprintf(cmd, sizeof(cmd), "%s -f -uM %s", sfdisk.c_str(), devname.c_str());
|
||||
strcpy(cmd2, "0,\n;\n;\n;\ny\n");
|
||||
} else if (! fdisk.empty()) {
|
||||
snprintf(cmd, sizeof(cmd), "%s -u /dev/%s", fdisk.c_str(), devname.c_str());
|
||||
snprintf(cmd, sizeof(cmd), "%s -u %s", fdisk.c_str(), devname.c_str());
|
||||
strcpy(cmd2, "o\nn\np\n1\n2048\n\nw\n");
|
||||
} else {
|
||||
/* cannot do anything */
|
||||
|
Reference in New Issue
Block a user