# -*-mic2-options-*- -f raw --fstab=uuid --copy-kernel --compress-disk-image=bz2 --generate-bmap -*-mic2-options-*-

# 
# Do not Edit! Generated by:
# kickstarter.py
# 

lang en_US.UTF-8
keyboard us
timezone --utc America/Los_Angeles
part /boot --size 64 --ondisk sda --fstype=vfat --label TZBOOT --active --align 1024 --part-type C12A7328-F81F-11D2-BA4B-00A0C93EC93B
part / --fstype="ext4" --size=3520 --ondisk=sda --label tizen-common --fsoptions=defaults,noatime

rootpw tizen 
xconfig --startxonboot
bootloader  --timeout=3  --append="rw vga=current quiet splash rootwait rootfstype=ext4"   --ptable=gpt --menus="install:Wipe and Install:systemd.unit=system-installer.service:test"

desktop --autologinuser=guest  
user --name guest  --groups audio,video --password 'tizen'

installerfw_plugins "bootloader,fstab"

repo --name=common-wayland_x86_64 --baseurl=http://download.tizen.org/snapshots/tizen/common/@BUILD_ID@/repos/x86_64-wayland/packages/ --ssl_verify=no
repo --name=base_x86_64 --baseurl=http://download.tizen.org/snapshots/tizen/base/latest/repos/x86_64/packages/ --ssl_verify=no

%packages

# @ Generic Adaptation
linux-firmware
system-plugin
# @ Common Adaptation
meta-generic-adaptation
# @ Generic Setup Boot
gptfdisk
gummiboot-splash
setup-scripts-clone
setup-scripts-gummiboot
# Others


kernel-profile-common

system-installer

%end



%post
#!/bin/sh
echo "#################### generic-adaptation.post ####################"

# fix TIVI-2291
sed -ri "s/(^blacklist i8042.*$)/#fix from base-general.post \1/" /etc/modprobe.d/blacklist.conf


#!/bin/sh
echo "############### common-adaptation.post ################"


#!/bin/sh
echo "#################### generic-setup-boot.post ##################"

# Install and configure the boot-loader, /etc/fstab, and so on
/usr/sbin/setup-scripts-boot


%end

%post --nochroot
####################### buildname.nochroot #######################
if [ -n "$IMG_NAME" ]; then
	echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
	echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/os-release
	echo "$IMG_NAME @BUILD_ID@" >>$INSTALL_ROOT/etc/tizen-snapshot
fi


%end
