Add DEBUG message

This commit is contained in:
Kevin Kim
2021-04-17 14:36:39 +09:00
parent a97c4730d2
commit a830ea00a2
3 changed files with 32 additions and 2 deletions

View File

@@ -59,3 +59,17 @@ blacklist {
# ll /dev/disk/by-id/ | grep sda
lrwxrwxrwx 1 root root 9 Sep 9 14:47 scsi-3600508b1001c75ccf265ebc995aab8f4 -> ../../sda
> TRY #1
sudo systemctl stop multipath-tools.service
sudo apt purge multipath-tools
--
쓰는 도중에 확인한 마운트 정보
hamonikr@hamonikr-jin:/.sblivesystemwrite$ cat /etc/mtab
/dev/sdc1 /.sblivesystemwrite/sblive vfat rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/sdc2 /.sblivesystemwrite/sbroot ext4 rw,noatime 0 0

View File

@@ -839,6 +839,14 @@
<source>An error occurred while unpacking the Live system files.</source>
<translation> .</translation>
</message>
<message>
<source>An error occurred while writing SBLIVE partition.</source>
<translation>SBLIVE .</translation>
</message>
<message>
<source>An error occurred while writing SBROOT partition.</source>
<translation>SBROOT .</translation>
</message>
<message>
<source>The Live conversion is aborted!</source>
<translation> .</translation>

View File

@@ -2676,8 +2676,12 @@ void systemback::livewrite()
{
if(sb::exec("tar -xf \"" % sb::sdir[2] % "\"/" % sb::left(ui->livelist->currentItem()->text(), sb::instr(ui->livelist->currentItem()->text(), " ") - 1) % ".sblive -C /.sblivesystemwrite/sblive --no-same-owner --no-same-permissions", sb::Prgrss)) return err(323);
}
else if(sb::exec("tar -xf \"" % sb::sdir[2] % "\"/" % sb::left(ui->livelist->currentItem()->text(), sb::instr(ui->livelist->currentItem()->text(), " ") - 1) % ".sblive -C /.sblivesystemwrite/sblive --exclude=casper/filesystem.squashfs --exclude=live/filesystem.squashfs --no-same-owner --no-same-permissions") || sb::exec("tar -xf \"" % sb::sdir[2] % "\"/" % sb::left(ui->livelist->currentItem()->text(), sb::instr(ui->livelist->currentItem()->text(), " ") - 1) % ".sblive -C /.sblivesystemwrite/sbroot --exclude=.disk --exclude=boot --exclude=EFI --exclude=syslinux --exclude=casper/initrd.gz --exclude=casper/vmlinuz --exclude=live/initrd.gz --exclude=live/vmlinuz --no-same-owner --no-same-permissions", sb::Prgrss))
return err(323);
else
{
if(sb::exec("tar -xf \"" % sb::sdir[2] % "\"/" % sb::left(ui->livelist->currentItem()->text(), sb::instr(ui->livelist->currentItem()->text(), " ") - 1) % ".sblive -C /.sblivesystemwrite/sblive --exclude=casper/filesystem.squashfs --exclude=live/filesystem.squashfs --no-same-owner --no-same-permissions", sb::Prgrss)) return err(400);
if(sb::exec("tar -xf \"" % sb::sdir[2] % "\"/" % sb::left(ui->livelist->currentItem()->text(), sb::instr(ui->livelist->currentItem()->text(), " ") - 1) % ".sblive -C /.sblivesystemwrite/sbroot --exclude=.disk --exclude=boot --exclude=EFI --exclude=syslinux --exclude=casper/initrd.gz --exclude=casper/vmlinuz --exclude=live/initrd.gz --exclude=live/vmlinuz --no-same-owner --no-same-permissions", sb::Prgrss)) return err(401);
}
pset(1);
if(sb::exec("syslinux -ifd syslinux " % ldev % (ismmc ? "p" : nullptr) % '1')) return err();
@@ -2904,6 +2908,10 @@ void systemback::dialogopen(ushort dlg, cbstr &dev)
return tr("The Live write is aborted!") % "<p>" % tr("The specified partition could not be formatted (in use or unavailable).") % "<p><b>" % dev.data;
case 339:
return tr("The system restoration is aborted!") % "<p>" % tr("There is not enough free space.");
case 400:
return tr("The Live write is aborted!") % "<p>" % tr("An error occurred while writing SBLIVE partition.");
case 401:
return tr("The Live write is aborted!") % "<p>" % tr("An error occurred while writing SBROOT partition.");
default:
return tr("The system repair is aborted!") % "<p>" % tr("There is not enough free space.");
}