home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
clients
/
inst_dirinstall.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
2KB
|
59 lines
/**
* Module: inst_dirinstall.ycp
*
* Authors: Anas Nashif<nashif@suse.de>
*
* Purpose: Install into directory
*
* $Id: inst_dirinstall.ycp 33515 2006-10-19 11:04:46Z lslezak $
*/
{
textdomain "packager";
import "DirInstall";
import "Installation";
import "Directory";
import "Popup";
import "SlideShow";
import "PackageInstallation";
import "PackageCallbacks";
import "Wizard";
import "Progress";
import "String";
Pkg::TargetFinish ();
DirInstall::MountFilesystems ();
// create /dev/zero and /dev/null devices in the target directory,
// some packages require them in the postinstall script
SCR::Execute(.target.bash, sformat("mkdir -p '%1/dev'", String::Quote (DirInstall::target)));
SCR::Execute(.target.bash, sformat("mknod -m 666 '%1/dev/zero' c 1 5", String::Quote (DirInstall::target)));
SCR::Execute(.target.bash, sformat("mknod -m 666 '%1/dev/null' c 1 3", String::Quote (DirInstall::target)));
/*
if(Pkg::TargetInit (Installation::destdir,true) != true)
{
// continue-cancel popup
if(Popup::ContinueCancel(_("Initializing the target directory failed")) == false)
{
return `abort;
}
}
*/
/*
boolean anyToDelete = Pkg::PkgAnyToDelete();
SlideShow::SetLanguage (UI::GetLanguage(true));
SlideShow::InitPkgData();
SlideShow::OpenSlideShowDialog();
Pkg::TargetLogfile (Installation::destdir + Directory::logdir + "/y2logRPM");
list commit_result = PackageInstallation::CommitPackages (0, 0);
SlideShow::CloseSlideShowDialog();
*/
return `next;
}